home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
ROLODEXL.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-09-12
|
1KB
|
38 lines
5 'Rolodex printout of cardfile.com in as a list to be taken with cellular phone
10 open "R",#1,"PHONE#",1
20 FIELD #1,1 AS X$
30 GET #1,1
40 A#=2
45 I=0
47 LPRINT:LPRINT:LPRINT "ROLODEX ";DATE$
48 LPRINT "===================================================================";
49 LPRINT CHR$(15):WIDTH "LPT1:",132
50 C$=" "
60 B#=A#
65 I=I+1:J=I
70 FOR A#=B# TO B#+191 STEP 32
75 E$=" "
80 FOR REC#=A# TO A#+31
90 GET #1,REC#
95 IF C$=X$ THEN IF X$=" " THEN GOTO 105
100 E$=E$+X$
105 C$=X$
110 NEXT REC#
115 E$=MID$(E$,2)
120 IF E$<=" " THEN GOTO 140
122 IF J>0 THEN LPRINT RIGHT$(" "+STR$(J)+". ",6);E$;:GOTO 135
130 LPRINT E$;
135 J=0
140 NEXT A#
160 LPRINT " "
170 GET #1,REC#+1
180 IF EOF(1) THEN GOTO 200
185 LPRINT
190 GOTO 60
200 CLOSE
203 LPRINT "==================================================================="
204 LPRINT "END OF FILE";
205 LPRINT CHR$(18);CHR$(12):LPRINT:WIDTH "LPT1:",80
210 END