home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / propmgr2.zip / EDIT.ACG < prev    next >
Text File  |  1986-09-03  |  6KB  |  224 lines

  1. * DATE 08/27/84  12:36
  2. * edit.cmd
  3. STOR CHR(PEEK (063)) TO dr
  4. RECA
  5. STOR lastname TO mlastname
  6. STOR fname TO mfname
  7. STOR spouse TO mspouse
  8. STOR mr TO mmr
  9. STOR title TO mtitle
  10. STOR company1 TO mcompany1
  11. STOR company2 TO mcompany2
  12. STOR caddress TO mcaddress
  13. STOR suite TO msuite
  14. STOR ccity TO mccity
  15. STOR cst TO mcst
  16. STOR czip TO mczip
  17. STOR address TO maddress
  18. STOR apt TO mapt
  19. STOR city TO mcity
  20. STOR st TO mst
  21. STOR zip TO mzip
  22. STOR ophone TO mophone
  23. STOR phone TO mphone
  24. STOR dear TO mdear
  25. STOR send TO msend
  26. STOR cs1 TO mcs1
  27. STOR cs2 TO mcs2
  28. STOR cs3 TO mcs3
  29. STOR cs4 TO mcs4
  30. STOR cs5 TO mcs5
  31. STOR cs6 TO mcs6
  32. STOR update TO mupdate
  33. ERAS
  34. STOR 'Edit Data Module' TO mode
  35. STOR 'Enter the new or corrected information' TO prompt1
  36. STOR 'Control Q to end edit session' TO prompt2
  37. @ 1,25 SAY mode
  38. @ 2, 0 SAY "+---------------------------------------"
  39. @ 2,39 SAY "---------------------------------------+"
  40. @ 3, 3 SAY "Lastname"
  41. @ 3,46 SAY "First & MI"
  42. @ 4, 5 SAY "Spouse"
  43. @ 4,46 SAY "Address as"
  44. @ 6, 6 SAY "Title"
  45. @ 7, 1 SAY "Company #1"
  46. @ 8, 9 SAY "#2"
  47. @ 9, 0 SAY "Co. Address"
  48. @ 9,51 SAY "Suite"
  49. @ 10, 7 SAY "City"
  50. @ 10,36 SAY "ST"
  51. @ 10,53 SAY "Zip"
  52. @ 12, 2 SAY "Home Addr"
  53. @ 12,53 SAY "Apt"
  54. @ 13, 7 SAY "City"
  55. @ 13,36 SAY "ST"
  56. @ 13,53 SAY "Zip"
  57. @ 14, 2 SAY "Telephone  Office"
  58. @ 14,46 SAY "Home phone"
  59. @ 15, 1 SAY "Salutation"
  60. @ 15,42 SAY "Send to office"
  61. @ 16, 3 SAY "Codes 1-"
  62. @ 16,20 SAY "2-"
  63. @ 16,31 SAY "3-"
  64. @ 16,42 SAY "4-"
  65. @ 16,54 SAY "5-"
  66. @ 16,65 SAY "6-"
  67. @ 17,50 SAY "Update"
  68. @ 18, 0 SAY "+---------------------------------------"
  69. @ 18,39 SAY "---------------------------------------+"
  70. @ 19,12 SAY prompt1
  71. @ 20,12 SAY prompt2
  72. @ 3,12 GET mlastname
  73. @ 3,57 GET mfname
  74. @ 4,12 GET mspouse
  75. @ 4,57 GET mmr
  76. @ 6,12 GET mtitle
  77. @ 7,12 GET mcompany1
  78. @ 8,12 GET mcompany2
  79. @ 9,12 GET mcaddress
  80. @ 9,57 GET msuite
  81. @ 10,12 GET mccity
  82. @ 10,40 GET mcst picture '!!'
  83. @ 10,57 GET mczip picture '99999'
  84. @ 12,12 GET maddress
  85. @ 12,57 GET mapt
  86. @ 13,12 GET mcity
  87. @ 13,40 GET mst picture '!!'
  88. @ 13,57 GET mzip picture '99999'
  89. @ 14,20 GET mophone picture '(999)999-9999'
  90. @ 14,57 GET mphone picture '(999)999-9999'
  91. @ 15,12 GET mdear
  92. @ 15,57 GET msend picture '!'
  93. @ 16,12 GET mcs1
  94. @ 16,23 GET mcs2
  95. @ 16,34 GET mcs3
  96. @ 16,45 GET mcs4
  97. @ 16,57 GET mcs5
  98. @ 16,68 GET mcs6
  99. @ 17,57 GET mupdate picture '99/99/99'
  100. READ
  101. CLEA GETS
  102. DO CASE
  103. CASE mfname = ' '
  104.  STOR t TO error
  105. CASE mmr = ' '
  106.  STOR t TO error
  107. CASE mdear = ' '
  108.  STOR t TO error
  109. CASE .NOT. (msend = 'Y' .OR. msend = 'N')
  110.  STOR t TO error
  111. OTHE
  112.  STOR f TO error
  113. ENDC
  114. IF error
  115.  @ 01,00
  116.  @ 19,00
  117.  @ 20,00
  118.  @ 21,00
  119.  @ 1,18 SAY 'Please Correct the Indicated Data'
  120.  STOR t to an:error
  121.  DO WHIL an:error
  122.   DO CASE
  123.   CASE mfname = ' '
  124.    @ 20,15 SAY 'Must add a First Name                                  '
  125.    @ 03,57 GET mfname
  126.    READ
  127.   CASE mmr = ' '
  128.    @ 20,15 SAY 'Must have Mr. or Miss. etc                             '
  129.    @ 04,57 GET mmr
  130.    READ
  131.   CASE mdear = ' '
  132.    @ 20,15 SAY 'Must have a salutation for Dear.....                   '
  133.    @ 15,12 GET mdear
  134.    READ
  135.   CASE .NOT. (msend = 'Y' .OR. msend = 'N')
  136.    @ 20,15 SAY 'Must answer "Y" or "N" to send letter to office   '
  137.    @ 15,57 GET msend picture '!'
  138.    READ
  139.   OTHE
  140.    STOR f TO an:error
  141.   ENDC
  142.  ENDD while an:error
  143. ENDI error
  144. STOR 'N' TO command
  145. @ 19,00
  146. @ 20,00
  147. @ 21,00
  148. @ 20,15 SAY 'Are there any more changes ?                        '
  149. @ 20,48 GET command picture '!'
  150. READ
  151. IF command = 'Y'
  152.  @ 1,00
  153.  @ 1,25 SAY mode
  154.  @ 3,12 GET mlastname
  155.  @ 3,57 GET mfname
  156.  @ 4,12 GET mspouse
  157.  @ 4,57 GET mmr
  158.  @ 6,12 GET mtitle
  159.  @ 7,12 GET mcompany1
  160.  @ 8,12 GET mcompany2
  161.  @ 9,12 GET mcaddress
  162.  @ 9,57 GET msuite
  163.  @ 10,12 GET mccity
  164.  @ 10,40 GET mcst picture '!!'
  165.  @ 10,57 GET mczip picture '99999'
  166.  @ 12,12 GET maddress
  167.  @ 12,57 GET mapt
  168.  @ 13,12 GET mcity
  169.  @ 13,40 GET mst picture '!!'
  170.  @ 13,57 GET mzip picture '99999'
  171.  @ 14,20 GET mophone picture '(999)999-9999'
  172.  @ 14,57 GET mphone picture '(999)999-9999'
  173.  @ 15,12 GET mdear
  174.  @ 15,57 GET msend picture '!'
  175.  @ 16,12 GET mcs1
  176.  @ 16,23 GET mcs2
  177.  @ 16,34 GET mcs3
  178.  @ 16,45 GET mcs4
  179.  @ 16,57 GET mcs5
  180.  @ 16,68 GET mcs6
  181.  @ 17,57 GET mupdate picture '99/99/99'
  182.  @ 19,00
  183.  @ 20,00
  184.  @ 21,00
  185.  @ 19,12 SAY prompt1
  186.  @ 20,12 SAY prompt2
  187.  READ
  188.  CLEA GETS
  189. ENDI command = 'Y'
  190. REPL lastname WITH mlastname, fname WITH mfname
  191. REPL spouse WITH mspouse, mr WITH mmr
  192. REPL title WITH mtitle, company1 WITH mcompany1
  193. REPL company2 WITH mcompany2, caddress WITH mcaddress
  194. REPL suite WITH msuite
  195. REPL ccity WITH mccity, cst WITH mcst
  196. REPL czip WITH mczip, address WITH maddress
  197. REPL apt WITH mapt
  198. REPL city WITH mcity, st WITH mst
  199. REPL zip WITH mzip, ophone WITH mophone
  200. REPL phone WITH mphone, dear WITH mdear
  201. REPL send WITH msend
  202. REPL cs1 WITH mcs1, cs2 WITH mcs2
  203. REPL cs3 WITH mcs3, cs4 WITH mcs4
  204. REPL cs5 WITH mcs5, cs6 WITH mcs6
  205. IF $(DATE(),1,2) <> '00'
  206.  STOR 'Y' TO command
  207.  @ 19,00
  208.  @ 20,00
  209.  @ 21,00
  210.  @ 20,12 SAY 'Do You wish to UpDate to Todays Date (Y/N) ?'
  211.  @ 20,57 GET command PICTURE '!'
  212.  READ
  213.  IF command = 'Y'
  214.   REPL update WITH  DATE()
  215.  ELSE
  216.   REPL update WITH mupdate
  217.  ENDI $(date)
  218. ENDI command = 'Y'
  219. RELE ALL
  220. STOR '?' TO command
  221. STOR t TO more
  222. STOR t TO first
  223. RETU
  224.