home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
734.DXCCGEN.BAS
< prev
next >
Wrap
BASIC Source File
|
1985-09-22
|
2KB
|
67 lines
10 REM DXCCGEN VER 1.1 COPYRIGHT JOE KASSER G3ZCZ 1982
20 ON ERROR GOTO 620
30 INPUT "What is the name of the DXCC record file ";F$
40 IF LEN(F$) = 0 THEN 30
50 INPUT "Is this a new file (Y/N) ";N$
60 IF LEN(N$) = 0 THEN 50
70 N = 0
80 IF LEFT$(N$,1) = "Y" THEN N = 1
90 IF LEFT$(N$,1) = "N" THEN N = 2
100 IF N = 0 THEN 50
110 OPEN "O",#2,F$ + ".$$$"
120 IF N = 1 THEN 180
130 OPEN "I",#1,F$ + ".DX"
140 IF EOF(1) THEN 200
150 LINE INPUT#1,A$
160 PRINT#2,A$
170 GOTO 140
180 OPEN "O",#3,F$ +".BAK" : CLOSE#3
190 GOTO 210
200 CLOSE#1
210 INPUT "Which country prefix (* to terminate program) ";P$
220 IF LEN(P$) = 0 THEN 210
230 IF LEFT$(P$,1) = "*" THEN 550 : REM exit
240 INPUT "Which Band ";B$
250 IF LEN(B$) = 0 THEN 240
260 INPUT "Which Mode ";M$
270 IF LEN(M$) = 0 THEN 260
280 INPUT "Call Sign ";C$
290 IF LEN(C$) = 0 THEN 280
300 INPUT "Date YY/MM/DD ";D$
310 IF LEN(D$) = 0 THEN 300
320 INPUT "Time ";T
330 Q = 0 : INPUT "QSL Status (Q W D B) " ;Q$
340 IF LEN(Q$) = 0 THEN 330
350 IF LEFT$(Q$,1) = "Q" THEN Q = 1
360 IF LEFT$(Q$,1) = "W" THEN Q = 2
370 IF LEFT$(Q$,1) = "D" THEN Q = 3
380 IF LEFT$(Q$,1) = "B" THEN Q = 4
390 IF Q = 0 THEN 330
400 PRINT P$ TAB(6) B$ TAB(10) M$ TAB(14);
410 PRINT C$ TAB(25) D$ TAB(34) T ;
420 PRINT TAB(40) ;
430 ON Q-1 GOTO 450,460,470
440 PRINT "QSL'D" : GOTO 480
450 PRINT "WORKED" : GOTO 480
460 PRINT "MAILED DIRECT" : GOTO 480
470 PRINT "SENT VIA BUREAU" : GOTO 480
480 INPUT "Are the data correct ";A$
490 IF LEN(A$) = 0 THEN 480
500 IF LEFT$(A$,1) = "N" THEN 210
510 IF LEFT$(A$,1) = "Y" THEN 520 ELSE 480
520 REM NOW WRITE TO DISK
530 PRINT #2,P$;",";C$;",";B$;",";M$;",";D$;",";T;",";Q
540 GOTO 210 : REM GET NEXT
550 REM exit routine
560 CLOSE#2
570 IF N = 1 THEN 600
580 KILL F$ + ".BAK"
590 NAME F$ + ".DX" AS F$ + ".BAK"
600 NAME F$ + ".$$$" AS F$ + ".DX"
610 GOTO 640
620 IF ERR = 53 AND ERL = 580 THEN RESUME 590
630 RESUME 640 : REM ALL OTHER ERRORS ARE YOUR FAULT
640 END
"
610 GOTO 640
620 IF ERR = 53 AND ERL = 580 THE