home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
maildb3.zip
/
MAILREPS.PRG
< prev
next >
Wrap
Text File
|
1988-04-01
|
2KB
|
85 lines
CLEAR
TEXT
Select a Report Option
1. Directory
2. Mailing Labels
3. Return to Main Menu
ENDTEXT
REPCHOICE = 0
@ 18,20 SAY "Enter your choice (1-3)";
GET REPCHOICE PICTURE "9" RANGE 1,3
READ
IF REPCHOICE = 3
RETURN
ENDIF
CLEAR
TEXT
Select a Sort Order
1. Alphabetical order by Name
2. Zip Code Order
3. Original Order
ENDTEXT
SORTCHOICE = 0
@ 18,20 SAY "Enter your choice (1-3)";
GET SORTCHOICE PICTURE "9" RANGE 1,3
READ
DO CASE
CASE SORTCHOICE = 1
SET INDEX TO LNAME
CASE SORTCHOICE = 2
SET INDEX TO ZIP
CASE SORTCHOICE = 3
CLOSE INDEX
ENDCASE
CLEAR
QCHOICE = "A"
@ 10,5 SAY;
"Do you want (A)ll records, or a (Q)uery?";
GET QCHOICE PICTURE "!"
READ
IF QCHOICE = "Q"
MODIFY QUERY MAILGEN
SET FILTER TO FILE MAILGEN
ENDIF
PMACRO = " "
TOPRINT ="N"
CLEAR
@ 10,5 SAY "Send report to printer? (Y/N)";
GET TOPRINT PICTURE "!"
READ
IF TOPRINT = "Y"
PMACRO = "TO PRINT"
ENDIF
DO CASE
CASE REPCHOICE = 1
REPORT FORM MEWDIREC &PMACRO
CASE REPCHOICE = 2
LABEL FORM NAILLAB &PMACRO
ENDCASE
IF TOPRINT <>"Y"
@ 24,1 CLEAR
WAIT "Press any key to return to menu..."
ENDIF
SET FILTER TO
SET INDEX TO LNAME, ZIP
RETURN