home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
misc
/
pc_ham3
/
wasprint.bas
< prev
Wrap
BASIC Source File
|
1985-10-06
|
2KB
|
55 lines
10 REM WASPRINT VERSION 851006
20 REM BY JOE KASSER G3ZCZ
30 CLS:WIDTH 80:S9=50:DIM S$(S9),C(S9),W$(S9),C$(S9),B$(S9),D$(S9),M$(S9)
40 INPUT"What is the name of the WAS data file ? ";L$: IF L$="" THEN 40
50 OPEN L$+".WAS" FOR INPUT AS 1
60 PRINT "LOADING WAS DATA FILE, PLEASE STANDBY"
70 FOR I = 1 TO S9:INPUT#1,S$(I),C(I),W$(I),C$(I),B$(I),D$(I),M$(I):NEXT:INPUT#1,FD$:CLOSE#1
80 W1=0:W2=W1:W3=W1:L1=W1
90 INPUT"Which call area (0-10) ? ";C1
100 INPUT"Screen or Printer (P/S) ? ";A$: IF A$="" THEN 100
110 IF LEFT$(A$,1)="P" THEN 330 ELSE IF LEFT$(A$,1)="S" THEN 120 ELSE 100
120 PRINT
130 PRINT L$+ " WAS Status as of ";FD$;: IF C1>9 THEN 150
140 PRINT " for the";STR$(C1)," call area";
150 PRINT
160 PRINT
170 PRINT "STATE";TAB(15);"STATUS";TAB(26);"CALL";TAB(37);"DATE";
180 PRINT TAB(50);"MODE"
190 FOR J=1 TO 63:PRINT "-";:NEXT:PRINT
200 FOR I = 1 TO S9
210 IF C(I)=C1 THEN 220 ELSE IF C1>9 THEN 220 ELSE 280
220 PRINT S$(I);TAB(18);W$(I);: IF W$=" " THEN PRINT : GOTO 280
230 PRINT TAB(25);C$(I);TAB(36);D$(I);TAB(50);M$(I)
240 IF W$(I)="W" THEN W1=W1+1 : GOTO 270
250 IF W$(I)="Q" THEN W2=W2+1 : GOTO 270
260 IF W$(I)="S" THEN W3=W3+1
270 L1=L1+1
280 NEXT
290 PRINT
300 PRINT W2;" QSL'd,";W1;" worked and ";W3;" cards in the mail"
310 IF L1=W2 THEN PRINT "You've got them all" ELSE PRINT "TOTAL = ";W1+W2
320 GOTO 520
330 LPRINT
340 LPRINT L$+ " WAS Status as of ";FD$;: IF C1>9 THEN 360
350 LPRINT " for the";STR$(C1)," call area";
360 LPRINT:LPRINT
370 LPRINT "STATE";TAB(15);"STATUS";TAB(26);"CALL";TAB(37);"DATE";
380 LPRINT TAB(50);"MODE"
390 FOR J=1 TO 63:LPRINT "-";:NEXT:LPRINT
400 FOR I = 1 TO S9
410 IF C(I)=C1 THEN 420 ELSE IF C1>9 THEN 420 ELSE 480
420 LPRINT S$(I);TAB(18);W$(I);: IF W$=" " THEN LPRINT : GOTO 480
430 LPRINT TAB(25);C$(I);TAB(36);D$(I);TAB(50);M$(I)
440 IF W$(I)="W" THEN W1=W1+1 : GOTO 470
450 IF W$(I)="Q" THEN W2=W2+1 : GOTO 470
460 IF W$(I)="S" THEN W3=W3+1
470 L1=L1+1
480 NEXT
490 LPRINT
500 LPRINT W2;" QSL'd,";W1;" worked and ";W3;" cards in the mail"
510 IF L1=W2 THEN LPRINT "You've got them all" ELSE LPRINT "TOTAL = ";W1+W2
520 INPUT"An other one ";A$: IF A$="" THEN 520 ELSE IF LEFT$(A$,1)="Y" THEN 80 ELSE 530
530 END
LSE LPRINT "TOTAL = ";W1+W2
520 INPUT"An other one ";A$: IF A