home *** CD-ROM | disk | FTP | other *** search
- NOTE*apmod.cmd-allows quicksearch & EDIT
- SET INDE TO
- GO BOTT
- STOR # TO max
- STOR 1+max TO max
- STOR max-1 TO toobig
- STOR 1 TO run
- SET INDE TO apdate
- ERAS
- DO WHIL run=1
- STOR ' / ' TO mapdate
- STOR "'99/99'" TO pic
- @ 1,0 SAY 'Appointments Modify Records'
- STOR 'Enter the month/year of the entry to find' TO m1
- @ 5,0 SAY 'Hit [RETURN] to EXIT:'
- STOR 'apdate' TO FIELD
- @ 3,00 SAY m1
- @ 3,50 GET mapdate PICTURE &pic
- READ
- @ 15,0
- @ 16,0
- @ 20,0
- IF mapdate=' / '
- ERAS
- STOR 0 TO run
- RELE ALL LIKE m*
- RELE toobig,pic,FIELD
- RELE run
- RETU
- ELSE
- STOR $(mapdate,4,2)+$(mapdate,1,2) TO n
- @ 10,00
- FIND "&N" $apdate
- IF #=0
- @ 14,0 SAY chr(7)
- @ 15,5 SAY 'There are no entries for '+mapdate
- @ 16,0 SAY 'You may try another month...'
- LOOP
- ELSE
- ERAS
- @ 1,0 SAY "--Displaying all entries for "+mapdate+"--"
- @ 2,0
- DISP OFF #,apdate,appt WHILE $(apdate,7,2)+$(apdate,1,2)="&N"
- STOR f TO found
- DO WHIL .not. found
- STOR 0 TO temp
- @ 21,10 SAY 'To EDIT one of the above records:'
- @ 22,10 SAY 'Enter the record number at left of the record and hit RETURN.'
- @ 23,10 SAY 'ENTER "0" to search again or EXIT' GET temp PICTURE '9999'
- READ
- @ 18,0
- @ 19,0
- @ 20,0
- ENDI
- IF temp=0
- STOR t TO found
- ERAS
- LOOP
- ENDI
- IF temp<>0 .AND. temp>max .OR. temp=max
- @ 18,0 SAY chr(7)
- @ 18,0 SAY 'The number entered was too large:'
- @ 19,0 SAY 'There are only '
- @ 19,14 SAY toobig USING '####'
- @ 19,19 SAY 'records in the database: - please try again....'
- STOR 0 TO temp
- LOOP
- ENDI
- IF temp<>0 .AND. temp<max
- GO temp
- ERAS
- STOR t TO found
- STOR t TO found
- DO WHIL found
- @ 1,0 SAY 'Modify Entries'
- @ 10,0 SAY 'Appt. Date ' GET apdate PICTURE '99/99/99'
- @ 12,0 SAY 'Appointment' GET appt
- READ
- @ 22,10 SAY 'ARE ALL THE CHANGES CORRECT (Y/N) ? (default:Y)' GET found ;
- PICTURE '!'
- READ
- STOR .not. found TO found
- ERAS
- ENDD
- STOR t TO found
- ENDD
- ENDI
- LOOP
- ENDI
- ENDI
-
- te,1,2)="&N"
- STOR f TO found
- DO WHIL .not. found
- STOR 0 TO temp
- @ 21,10 SAY 'To EDIT one of the above rec