home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpmug
/
cpmug041.ark
/
LABELS.BAS
< prev
next >
Wrap
BASIC Source File
|
1984-04-29
|
2KB
|
54 lines
REM PRINT LABELS PROGRAM
REM
REM FILENAME: LABELS.BAS
VERSION$ = "1.01"
DATE$ = "12/05/79"
BY$ = "BY JAMES K. MILLS"
REM
REM PRINTS MAILING LABELS OR RETURN ADDRESS
REM LABELS OF A SPECIFIED QUANTITY OF A SINGLE
REM NAME/ADDRESS.
REM
SPACES$ = " "
KBD = 5 : LF = 10
10 PRINT CHR$(26);CHR$(0); :REM CLEAR ADM-3A SCREEN
PRINT "LABELS VERSION ";VERSION$;" ";DATE$;" ";BY$
PRINT
INPUT "HOW MANY LABELS";NUMBER
NUMBER = INT (NUMBER)
IF NUMBER < 2 OR NUMBER > 200 THEN 10
IF NUMBER/2 <> INT (NUMBER/2) THEN NUMBER = NUMBER + 1
PRINT
INPUT "NAME";NAME$
INPUT "ORGANIZATION";ORG$
INPUT "STREET";STREET$
INPUT "CITY & STATE (NO COMMA)";CITY$
INPUT "ZIPCODE";ZIP$
PRINT
PRINT "******************************"; " "; \
"******************************"
PRINT NAME$;TAB(36);NAME$
PRINT ORG$;TAB(36); ORG$
PRINT STREET$;TAB(36); STREET$
PRINT LEFT$ (CITY$+SPACES$,25) + ZIP$; TAB(36); \
LEFT$ (CITY$+SPACES$,25) + ZIP$
PRINT "******************************"; " "; \
"******************************"
INPUT "IF OKAY, TYPE 'Y' AND ^P";OKAY$
IF OKAY$ <> "Y" AND OKAY$ <> "y" THEN 10
PRINT "PRESS LINEFEED"
100 IF INP(KBD) <> LF THEN 100
FOR I = 1 TO NUMBER/2
PRINT
PRINT NAME$;TAB(36);NAME$
PRINT ORG$;TAB(36); ORG$
PRINT STREET$;TAB(36); STREET$
PRINT LEFT$ (CITY$+SPACES$,25) + ZIP$; \
TAB(36); \
LEFT$ (CITY$+SPACES$,25) + ZIP$
PRINT
NEXT I
200 IF INP(KBD) = LF THEN 200
GOTO 10
END