Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : OFFICE.ZIP
Filename : EDITSCN.PRG
* Called from EXPENSE.
* Module purpose:
* allows edit and review from both files
* Find the record for the correct date
* for undeleted record
LOCATE ALL FOR MONTH(edate) = mmonth ;
.AND. YEAR(edate) = myear
CLEAR
STORE .T. TO repeat
DO WHILE repeat .AND. .NOT. EOF()
@ 2,15 SAY "REVIEW & EDIT"
@ 2,35 SAY CMONTH(seedate) + ' '
@ 2,COL()+2 SAY myear PICTURE '####'
@ 3,15 SAY "+--------------------"
@ 3,36 SAY "-----------------------------+"
@ 5,15 SAY "DAY OF MONTH :"
@ 5,30 SAY DAY(edate)
@ 5,45 SAY "CATEGORY :"
@ 5,56 GET ecategory PICTURE '!!!'
@ 7,15 SAY "EXPENSE AMOUNT :"
@ 7,31 GET eamount
@ 7,45 SAY "LOCATION :"
@ 7,56 GET elocation
@ 9,15 SAY "+---------------------"
@ 9,36 SAY "----------------------------+"
READ
* Verify categories.
DO WHILE AT(ecategory,"GAS PRK AIR CAB INN ENT TEL BRK LUN DIN OTH")=0
@ 5,56 SAY CHR(7) + " "
@ 5,56 GET ecategory PICTURE '!!!'
READ
CLEAR GETS
ENDDO
IF ecategory= 'ENT' .OR. ecategory= 'OTH'
* Find proper record in irsexpense.
* Files are linked by the value of exloc.
STORE exloc TO finder
SELECT irsfile
GOTO finder
* Edit the other file.
@ 11,29 SAY "If ENT or OTH Category:"
@ 13,15 SAY "Person :"
@ 13,25 GET eperson1
@ 13,45 SAY "Company :"
@ 13,55 GET ecompany1
@ 16,15 SAY "Reason for expense:"
@ 16,35 GET ereason
@ 17,15 SAY "Name of Restaurant:"
@ 17,35 GET erest
@ 18,15 SAY "Other Information :"
@ 18,35 GET eother
@ 19,15 SAY "+-------------------------"
@ 19,39 SAY "------------------------+"
READ
SELECT mainfile
ENDIF ecategory= 'ENT' .OR. ecategory= 'OTH'
@ 22,15
@ 22,15 SAY "CONTINUE THE REVIEW? (T/F)? "
@ 22,45 GET repeat
READ
CLEAR
CONTINUE
ENDDO repeat
RETURN
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/