home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol285 / add.prg < prev    next >
Encoding:
Text File  |  1986-12-22  |  4.4 KB  |  159 lines

  1. **    Last revision: April 17, 1986 at 18:54
  2. * add.prg
  3. * erase old screen
  4. CLEA
  5. STOR .t. TO first
  6. STOR .t. TO more
  7. SET DELIMITER OFF
  8. DO WHIL more
  9.  IF first
  10.   DO s_first
  11.   STOR .f. TO first
  12.  ENDI
  13.  SET COLOR TO &revvideo
  14.  @ 19,00
  15.  @ 19,10 SAY "ADD RECORDS MENU  - WHEN DONE ADDING HIT CONTROL 'Q' or 'W'"
  16.  SET COLOR TO &stdvideo
  17.  STOR SPACE(25) TO mlastname
  18.  STOR SPACE(20) TO mfname
  19.  STOR SPACE(15) TO mspouse
  20.  STOR SPACE(14) TO mmr
  21.  STOR SPACE(35) TO mtitle
  22.  STOR SPACE(35) TO mcompany1
  23.  STOR SPACE(35) TO mcompany2
  24.  STOR SPACE(35) TO mcaddress
  25.  STOR SPACE(10) TO msuite
  26.  STOR SPACE(20) TO mccity
  27.  STOR SPACE(2) TO mcst
  28.  STOR SPACE(10) TO mczip
  29.  STOR SPACE(35) TO maddress
  30.  STOR SPACE(10) TO mapt
  31.  STOR SPACE(20) TO mcity
  32.  STOR SPACE(2) TO mst
  33.  STOR SPACE(10) TO mzip
  34.  STOR SPACE(13) TO mophone
  35.  STOR SPACE(13) TO mphone
  36.  STOR SPACE(22) TO mdear
  37.  STOR SPACE(1) TO msend
  38.  STOR SPACE(1) TO mcs1
  39.  STOR SPACE(4) TO mcs2
  40.  STOR SPACE(8) TO mupdate
  41.  IF SUBSTR(DTOC(DATE()),1,2) <> '00' .AND. mupdate =  '  '
  42.   STOR DTOC(DATE()) to mupdate
  43.  ENDI
  44.  @ 3,13 GET mlastname PICTURE '!XXXXXXXXXXXXXXXXXXXXXXXX'
  45.  @ 3,58 GET mfname PICTURE '!XXXXXXXXXXXXXXXXXXX'
  46.  @ 4,13 GET mspouse
  47.  @ 4,58 GET mmr
  48.  @ 6,13 GET mtitle
  49.  @ 7,13 GET mcompany1
  50.  @ 8,13 GET mcompany2
  51.  @ 9,13 GET mcaddress
  52.  @ 9,58 GET msuite
  53.  @ 10,13 GET mccity
  54.  @ 10,44 GET mcst picture '!!'
  55.  @ 10,58 GET mczip picture '!!!!!!!!!!'
  56.  @ 12,13 GET maddress
  57.  @ 12,58 GET mapt
  58.  @ 13,13 GET mcity
  59.  @ 13,44 GET mst picture '!!'
  60.  @ 13,58 GET mzip picture '!!!!!!!!!!'
  61.  @ 14,21 GET mophone picture '(999)999-9999'
  62.  @ 14,58 GET mphone picture '(999)999-9999'
  63.  @ 15,13 GET mdear
  64.  @ 15,58 GET msend picture '!'
  65.  @ 16,13 GET mcs1 PICTURE '!'
  66.  @ 16,44 GET mcs2 PICTURE '!!!!'
  67.  @ 16,58 GET mupdate picture '99/99/99'
  68.  READ
  69.  CLEA GETS
  70.  IF mlastname <> ' '
  71.   DO check
  72.   SET DELIMITER ON
  73.   STOR 'N' TO command
  74.   @ 20,00
  75.   @ 21,00
  76.   @ 22,00
  77.   @ 23,00
  78.   @ 20,15 SAY 'Are there any more changes ?                        '
  79.   @ 20,48 GET command picture '!'
  80.   READ
  81.   @ 20,00
  82.   SET DELIMITER OFF
  83.   IF command = 'Y'
  84.    @ 3,13 GET mlastname PICTURE '!XXXXXXXXXXXXXXXXXXXXXXXX'
  85.    @ 3,58 GET mfname PICTURE '!XXXXXXXXXXXXXXXXXXX'
  86.    @ 4,13 GET mspouse
  87.    @ 4,58 GET mmr
  88.    @ 6,13 GET mtitle
  89.    @ 7,13 GET mcompany1
  90.    @ 8,13 GET mcompany2
  91.    @ 9,13 GET mcaddress
  92.    @ 9,58 GET msuite
  93.    @ 10,13 GET mccity
  94.    @ 10,44 GET mcst PICTURE '!!'
  95.    @ 10,58 GET mczip picture '!!!!!!!!!!'
  96.    @ 12,13 GET maddress
  97.    @ 12,58 GET mapt
  98.    @ 13,13 GET mcity
  99.    @ 13,44 GET mst PICTURE '!!'
  100.    @ 13,58 GET mzip picture '!!!!!!!!!!'
  101.    @ 14,21 GET mophone picture '(999)999-9999'
  102.    @ 14,58 GET mphone picture '(999)999-9999'
  103.    @ 15,13 GET mdear
  104.    @ 15,58 GET msend picture '!'
  105.    @ 16,13 GET mcs1 PICTURE '!'
  106.    @ 16,44 GET mcs2 PICTURE '!!!!'
  107.    @ 16,58 GET mupdate picture '99/99/99'
  108.    READ
  109.    CLEA GETS
  110.    DO check
  111.   ENDI command = 'Y'
  112.   APPE BLANK
  113.   REPL lastname WITH mlastname, fname WITH mfname
  114.   REPL spouse WITH mspouse, mr WITH mmr
  115.   REPL title WITH mtitle, company1 WITH mcompany1
  116.   REPL company2 WITH mcompany2, caddress WITH mcaddress
  117.   REPL suite WITH msuite, ccity WITH mccity
  118.   REPL cst WITH mcst, czip WITH mczip
  119.   REPL address WITH maddress, apt WITH mapt
  120.   REPL city WITH mcity, st WITH mst
  121.   REPL zip WITH mzip, ophone WITH mophone
  122.   REPL phone WITH mphone, dear WITH mdear
  123.   REPL send with msend
  124.   REPL cs1 WITH mcs1, cs2 WITH mcs2, update WITH mupdate
  125.   REPL new WITH .t.
  126.   STOR .t. TO more
  127.   @ 3,12 SAY SPACE(25)
  128.   @ 3,57 SAY space(20)
  129.   @ 4,12 SAY SPACE(15)
  130.   @ 4,58 SAY SPACE(14)
  131.   @ 6,12 SAY SPACE(35)
  132.   @ 7,12 SAY SPACE(35)
  133.   @ 8,12 SAY SPACE(35)
  134.   @ 9,12 SAY SPACE(35)
  135.   @ 9,58 SAY SPACE(10)
  136.   @ 10,12 SAY SPACE(20)
  137.   @ 10,44 SAY SPACE(2)
  138.   @ 10,58 SAY SPACE(10)
  139.   @ 12,12 SAY SPACE(35)
  140.   @ 12,58 SAY SPACE(10)
  141.   @ 13,12 SAY SPACE(20)
  142.   @ 13,44 SAY SPACE(2)
  143.   @ 13,57 SAY SPACE(10)
  144.   @ 14,20 SAY SPACE(13)
  145.   @ 14,58 SAY SPACE(13)
  146.   @ 15,12 SAY SPACE(22)
  147.   @ 15,58 SAY SPACE(1)
  148.   @ 16,12 SAY SPACE(1)
  149.   @ 16,44 SAY SPACE(5)
  150.   @ 16,58 SAY SPACE(8)
  151.  ELSE
  152.   STOR .f. TO more
  153.  ENDI there is an empty record
  154. ENDD while more
  155. SET DELIMITER ON
  156. STOR .t. TO first
  157. RETU
  158. 
  159.