Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : DB3AR.ZIP
Filename : DATA.PRG

 
Output of file : DATA.PRG contained in archive : DB3AR.ZIP
**************************************** (C.DATA.PRG)
CLEAR
@ 9,1 SAY 'Be sure you have updated the customer files before 
continuing.'
@ 13,1 SAY 'Want to print a customer data report? '
?
STORE ' ' TO OPTION
WAIT ' ? ' TO OPTION
IF OPTION<>'Y'
RETURN
ENDIF
CLEAR
USE B:CUST
STORE 0 TO COUNT
STORE 1 TO PCOUNT
SET TALK OFF
DO WHILE .NOT. EOF()
STORE ' ' TO MSALES
IF SALES='J'
STORE 'JAY KENNEY' TO MSALES
ENDIF
IF SALES='C'
STORE 'Charles Nash' TO MSALES
ENDIF
IF SALES='H'
STORE 'House' TO MSALES
ENDIF
SET PRINT ON
IF COUNT = 10
STORE PCOUNT+1 TO PCOUNT
STORE 0 TO COUNT
? CHR(12)
ENDIF
IF COUNT=0
? MTITLE+' Page '+STR(PCOUNT,2)
? DTOC(DATE())+' Customer Data Net Due 
+ 30 
+ 45 + 60'
? 
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~'
ENDIF
? 'Account number '+ACCT
? NAME+' '+PHONE+' '+STR(NET,7,2)+' 
'+STR(OLD_30,7,2)+STR(OLD_45,9,2)+STR(OLD_60,7,2)
? ADDRESS+'Salesman: '+MSALES

? CITY+STATE+' '+ZIP+' Discount:'+' '+DISC+' Paid YTD Total: 
'+STR(ALLPAY,8,2)
? 
'-----------------------------------------------------------------
--------------'
?
SKIP
STORE COUNT +1 TO COUNT
IF EOF()
? CHR(12)
ENDIF
SET PRINT OFF
ENDDO
RETURN


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : DB3AR.ZIP
Filename : DATA.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/