home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
misc
/
c3zcz_15
/
wasenter.bas
< prev
next >
Wrap
BASIC Source File
|
1985-10-06
|
2KB
|
54 lines
10 REM WASENTER VERSION 851006
20 CLS:WIDTH 80:REM COPYRIGHT (C) JOE KASSER G3ZCZ 1985
30 ON ERROR GOTO 470
40 S9=50:DIM S$(S9),C(S9),W$(S9),C$(S9),B$(S9),D$(S9),M$(S9)
50 INPUT "What is the name of the WAS data file (D:NAME) ",L$:IF L$="" THEN 50
60 OPEN L$+".WAS" FOR INPUT AS 1
70 PRINT "LOADING WAS DATA FILE, PLEASE STANDBY"
80 FOR I=1 TO S9
90 INPUT#1,S$(I),C(I),W$(I),C$(I),B$(I),D$(I),M$(I)
100 NEXT:INPUT#1,FD$
110 CLOSE #1
120 PRINT L$;" was last updated on ";FD$:PRINT
130 CLS:LOCATE 5,1
140 INPUT "Which state ",S1$:IF S1$="" THEN 130
150 FOR I=1 TO S9
160 IF LEN(S$(I))<LEN(S1$) THEN 180
170 IF S1$=LEFT$(S$(I),LEN(S1$)) THEN 190
180 NEXT :PRINT "ENTRY ERROR-STATE ";S1$;" DOES NOT EXIST" :GOTO 140
190 REM I SHOULD POINT TO ENTRY
200 GOSUB 450
210 INPUT "Do you want to update the entry ";A$:IF A$="" THEN 340
220 IF LEFT$(A$,1)="Y" THEN 230 ELSE IF LEFT$(A$,1) = "N" THEN 340 ELSE 210
230 INPUT "QSL status or whole entry (Q or W) ";A$:IF A$="" THEN 230
240 IF LEFT$(A$,1)="Q" THEN 290 ELSE IF LEFT$(A$,1)="W" THEN 250 ELSE 230
250 INPUT "Call sign ";C$:IF C$="" THEN 250
260 INPUT "Date of QSO (YY/MM/DD) ";D$:IF D$="" THEN 260
270 INPUT "Band ";B$:IF B$="" THEN 270
280 INPUT "Mode ";M$:IF M$="" THEN 280
290 INPUT "QSL Status (Q, W, S) ";A$:IF A$="" THEN 290 ELSE W$=A$
300 PRINT S$(I);TAB(15);C$;TAB(26);D$;TAB(35);B$;TAB(40);M$;TAB(45);W$
310 INPUT "OK ";A$:IF A$="" THEN 310
320 IF LEFT$(A$,1)="Y" THEN 330 ELSE IF LEFT$(A$,1)="N" THEN 230 ELSE 310
330 W$(I)=W$:C$(I)=C$:B$(I)=B$:D$(I)=D$:M$(I)=M$
340 INPUT "An other entry ";A$:IF A$="" THEN 340
350 IF LEFT$(A$,1)="Y" THEN 130 ELSE IF LEFT$(A$,1) = "N" THEN 360 ELSE 340
360 FD$=RIGHT$(DATE$,2)+"/"+LEFT$(DATE$,2)+"/"+MID$(DATE$,4,2)
370 PRINT "UPDATING WAS DATA FILE, PLEASE STAND BY"
380 OPEN L$+".$$$" FOR OUTPUT AS 1:FOR I=1 TO S9
390 PRINT#1,S$(I);",";C(I);",";W$(I);",";C$(I);",";B$(I);",";D$(I);",";M$(I)
400 NEXT:PRINT#1,FD$
410 CLOSE #1
420 NAME L$+".WAS" AS L$+".BAK"
430 NAME L$+".$$$" AS L$+".WAS"
440 GOTO 460
450 PRINT S$(I);TAB(15);C$(I);TAB(26);D$(I);TAB(35);B$(I);TAB(40);M$(I);TAB(45);W$(I):RETURN
460 END
470 IF ERL = 420 THEN KILL L$+".BAK": RESUME 420
480 IF ERL=60 THEN PRINT "WAS DATA FILE DOES NOT EXIST": RESUME 50
490 PRINT "ERROR";ERR;" ON LINE ";ERL
500 RESUME 460
20
480 IF ERL=60 THEN PRINT "WAS DATA FILE DOES NOT EXIST": RESUME 50
490 PRINT "ERROR";ERR;" ON LINE ";ERL
500