home *** CD-ROM | disk | FTP | other *** search
- * Program.: SAM_REPO.PRG
- * Author..: Your Name
- * Date....: 11/05/85
- * Notice..: Copyright 1985, Your Company, All Rights Reserved
- * Version.: dBASE III, version 1.1
- * Notes...: REPORT program for NAMES.DBF
- *
- CLEAR
- SET COLOR TO &WindowAtr
- @ 2, 0 SAY "P R I N T R E P O R T"
- @ 2,72 SAY DATE()
- @ 3, 0 SAY PromptBar
- * ---If the file does not exist, create it.
- IF .NOT. FILE( "NAMES.FRM" )
- choice = " "
- @ 5, 0 SAY "The NAMES report form does not exist. CREATE IT? (y/n)";
- GET choice PICTURE "!"
- READ
- IF choice <> "Y"
- RETURN
- ENDIF
- CREATE REPORT NAMES
- RETURN
- ENDIF
- * ---Get the FILTER <exp> for the report.
- @ 5,0 CLEAR
- DO GetExpr WITH 18,"Print REPORT FOR ",expr
- SET FILTER TO &expr
- @ 5,0 CLEAR
- choice = " "
- @ 5, 0 SAY "Output to the screen or printer? [S/P]";
- GET choice PICTURE "!"
- READ
- DO CASE
- CASE choice = " "
- RETURN
- CASE choice = "P"
- @ 5,0 CLEAR
- @ 5, 0 SAY "Printing report..."
- SET ESCAPE ON
- REPORT FORM NAMES NOEJECT TO PRINT
- SET ESCAPE OFF
- OTHERWISE
- CLEAR
- SET ESCAPE ON
- REPORT FORM NAMES
- SET ESCAPE OFF
- WAIT
- ENDCASE
- SET FILTER TO
- GOTO oldrecnum
- RETURN
- * EOF: SAM_REPO.PRG
-