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

  1. * DATE 08/27/84  12:32
  2. * main.prg
  3. * main command program of database
  4. STOR CHR(PEEK(063)) TO dr
  5. USE &dr.:acg
  6. SET INDEX TO &dr.:lastname
  7. STOR t TO first
  8. DO WHIL t
  9.  IF first
  10.   ERAS
  11.   STOR '<F>orward, <B>ackward, <D>elete/Recall, <H>elp' TO prompt1
  12.   STOR '<S>earch, <M>aintenance, <P>rint, <R>ports' TO prompt2
  13.   STOR '<A>dd, <E>dit, <Q>uit to CP/M' TO prompt3
  14.   STOR 'Main Module ' TO mode
  15.   @ 1,25 SAY mode
  16.   @ 2, 0 SAY "+---------------------------------------"
  17.   @ 2,39 SAY "---------------------------------------+"
  18.   @ 3, 3 SAY "Lastname:"
  19.   @ 3,46 SAY "First & MI:"
  20.   @ 4, 5 SAY "Spouse:"
  21.   @ 4,46 SAY "Address as:"
  22.   @ 6, 6 SAY "Title:"
  23.   @ 7, 1 SAY "Company #1:"
  24.   @ 8, 9 SAY "#2:"
  25.   @ 9, 0 SAY "Co. Address:"
  26.   @ 9,51 SAY "Suite:"
  27.   @ 10, 7 SAY "City:"
  28.   @ 10,36 SAY "ST:"
  29.   @ 10,53 SAY "Zip:"
  30.   @ 12, 2 SAY "Home Addr:"
  31.   @ 12,53 SAY "Apt:"
  32.   @ 13, 7 SAY "City:"
  33.   @ 13,36 SAY "ST:"
  34.   @ 13,53 SAY "Zip:"
  35.   @ 14, 2 SAY "Telephone  Office:"
  36.   @ 14,46 SAY "Home phone:"
  37.   @ 15, 1 SAY "Salutation:"
  38.   @ 15,42 SAY "Send to office:"
  39.   @ 16, 4 SAY "Codes 1-"
  40.   @ 16,21 SAY "2-"
  41.   @ 16,32 SAY "3-"
  42.   @ 16,43 SAY "4-"
  43.   @ 16,55 SAY "5-"
  44.   @ 16,66 SAY "6-"
  45.   @ 17,50 SAY "Update:"
  46.   @ 18, 0 SAY "+---------------------------------------"
  47.   @ 18,39 SAY "---------------------------------------+"
  48.   @ 19,12 SAY prompt1
  49.   @ 20,12 SAY prompt2
  50.   @ 21,12 SAY prompt3
  51.  ENDI first
  52.  STOR f TO first
  53.  STOR '?' TO command
  54.  IF *
  55.   STOR 'Deleted' TO deleted
  56.  ELSE
  57.   STOR '       ' TO deleted
  58.  ENDI
  59.  @ 1, 0 SAY deleted
  60.  @ 3,13 SAY lastname
  61.  @ 3,58 SAY fname
  62.  @ 4,13 SAY spouse
  63.  @ 4,58 SAY mr
  64.  @ 6,13 SAY title
  65.  @ 7,13 SAY company1
  66.  @ 8,13 SAY company2
  67.  @ 9,13 SAY caddress
  68.  @ 9,58 SAY suite
  69.  @ 10,13 SAY ccity
  70.  @ 10,41 SAY cst
  71.  @ 10,58 SAY czip
  72.  @ 12,13 SAY address
  73.  @ 12,58 SAY apt
  74.  @ 13,13 SAY city
  75.  @ 13,41 SAY st
  76.  @ 13,58 SAY zip
  77.  @ 14,21 SAY ophone
  78.  @ 14,58 SAY phone
  79.  @ 15,13 SAY dear
  80.  @ 15,58 SAY send
  81.  @ 16,13 SAY cs1
  82.  @ 16,24 SAY cs2
  83.  @ 16,35 SAY cs3
  84.  @ 16,46 SAY cs4
  85.  @ 16,58 SAY cs5
  86.  @ 16,69 SAY cs6
  87.  @ 17,58 SAY update
  88.  @ 22,46 SAY "WHAT NEXT ?"
  89.  @ 22,60 GET command PICTURE '!'
  90.  READ
  91.  DO CASE
  92.  CASE command = 'A'
  93.   DO add.acg
  94.  CASE (command = 'B' .OR. command = ',')
  95.   SKIP -1
  96.  CASE command = 'D'
  97.   IF *
  98.    RECA
  99.   ELSE
  100.    DELE
  101.   ENDI
  102.  CASE command = 'E'
  103.   DO edit.acg
  104.  CASE (command = 'F' .OR. command = '.')
  105.   SKIP
  106.  CASE (command = 'H' .OR. command = '?')
  107.   STOR t TO first
  108.   ERAS
  109. TEXT
  110.  
  111.              M A I N    M E N U   H E L P   F I L E 
  112.  
  113.       Welcome to the Amateur Computer Group of New Jersey Mailing List program.
  114.       I am here to help and you can call me anytime by entering a ? mark at any
  115.       place where this program asks for a command. 
  116.  
  117.       When you go back to the screen you will see two lines    - on top of the 
  118.       first line it says 'Main Module'    - thus, on top of the first line the 
  119.       program always tells you where you are! 
  120.  
  121.       Between the two lines we have the information you or someone else placed
  122.       in the computer. This information tells you all about a particular file.
  123.  
  124.       Below th line is the list of things you can do. To look at the next file
  125.       hit 'F' (or a period).  To go back one record - hit 'B' (or a comma). To
  126.       delete a record hit 'D' and a sign will appear at the upper left corner.
  127.       To remove the delete - hit 'D' again. Don't worry -  you cannot delete a
  128.       record just by hitting 'D'. You must run another program on the Mainten-
  129.       ance Menu.
  130.  
  131.                                     Please hit any key to continue............
  132. ENDT
  133.   SET CONSOLE OFF
  134.   WAIT
  135.   SET CONSOLE ON
  136.   ERAS
  137. TEXT
  138.  
  139.       To find a file - hit 'S' for search.  To edit an entry hit 'E' (although
  140.       you usually would search for a file - and Edit from the search menu.)
  141.  
  142.       To add more records you hit 'A'.   Once in add - you enter as many files
  143.       as you want one at a time, and then can index if you wish.
  144.  
  145.       To prepare Wordstar data, reports or display records hit 'R'for reports.
  146.  
  147.       To reindex, purge files, check for duplicates, etc hit 'M' for maintain. 
  148.  
  149.       ------------------------------------------------------------------------
  150.       WHATEVER YOU DO -  NEVER SHUT OFF THE MACHINE OR REMOVE A DISK UNTIL YOU 
  151.       FIRST HIT 'Q' TO QUIT. Get back to the 'A>' (called A prompt) before you 
  152.       take out the disk.........please, otherwise you will lose data!!!!
  153.       ------------------------------------------------------------------------
  154.  
  155.                            please hit any key to return to the data base......
  156.  
  157.  
  158.  
  159.  
  160. ENDT
  161.   SET CONSOLE OFF
  162.   WAIT
  163.   SET CONSOLE ON
  164.   ERAS
  165.  CASE command = 'M'
  166.   DO maintain.acg
  167.  CASE command = 'P'
  168.   DO print.acg
  169.  CASE command = 'Q'
  170.   SET CONSOLE OFF
  171.   ERAS
  172.   QUIT
  173.  CASE command = 'R'
  174.   DO report.acg
  175.  CASE command = 'S'
  176.   DO search.acg
  177.  ENDC
  178. ENDD
  179.