home *** CD-ROM | disk | FTP | other *** search
- 10 PRINT CHR$(26),CHR$(12)\REM VER 790906
- 20 PRINT"Station Customising Program, Version 0.2"
- 30 ERRSET 495,E1,E2
- 40 PRINT
- 50 PRINT"(C) Copyright Snow Micro System Inc. 1979"
- 60 REM By Joe Kasser G3ZCZ June 1979
- 70 PRINT \ PRINT\ X$="STNDATA,"
- 80 FOR I=1 TO 4 \ I$=STR$(I) \ I$=I$(2,2)
- 90 IF FILE(X$+I$)=3 THEN EXIT 120
- 100 NEXT
- 110 PRINT"file STNDATA - station data file missing"\ GOTO 400
- 120 OPEN#0,X$+STR$(I)
- 130 READ#0,L$,C$,L1,L2
- 140 CLOSE#0
- 150 PRINT"Station configuration for ",C$
- 160 PRINT
- 170 PRINT"Current Log file is ",L$
- 180 PRINT
- 190 INPUT"Do you want to update any information ? ",A$\IFA$="" THEN190
- 200 IF A$(1,1)="Y" THEN 210 ELSE 400
- 210 PRINT
- 220 INPUT"Do you want to update the callsign ? ",A$\IFA$=""THEN220
- 230 IF A$(1,1)="N" THEN 250
- 240 INPUT"What is your Call Sign ? ",C$\IFA$=""THEN240
- 250 PRINT"Current latitude is ",L1," Longitude is ",L2
- 260 INPUT"Do you want to update the Geographical Co-ordinates ?",A$
- 270 IF A$="" THEN 260
- 280 IF A$(1,1)="Y" THEN 290 ELSE 310
- 290 INPUT"Your Station Latitude ? ",L1
- 300 INPUT"Your Station Longitude ? ",L2
- 310 INPUT"Do you want to change the current log file ?",A$\IFA$=""THEN310
- 320 IF A$(1,1)="Y" THEN 330 ELSE 360
- 330 INPUT"What is the name of the new log file ? ",L$\IFL$=""THEN330
- 340 INPUT"is it current ? ",A$\IFA$=""THEN340
- 350 IF A$(1,1)="Y" THEN A=0 ELSE A=1
- 360 OPEN #0,X$+I$
- 370 WRITE#0,L$,C$,L1,L2
- 380 CLOSE#0
- 390 IF A=1 THEN 460
- 400 FOR I=1TO4 \ I$=STR$(I)
- 410 IF FILE("SYSTEM,"+I$)=2 THEN EXIT 450
- 420 NEXT
- 430 PRINT"Put a system disc in any drive, then hit 'RETURN'"
- 440 INPUT"", A$ \ GOTO 400
- 450 CHAIN "SYSTEM,"+I$
- 460 FOR I=1TO4 \ I$=STR$(I)
- 470 IF FILE("NEWLOG,"+I$)=2 THEN EXIT 490
- 475 NEXT
- 480 PRINT "File NEWLOG is not in any drive, put it in, then hit 'RETURN'"
- 485 INPUT"",A$\ GOTO 460
- 490 CHAIN "NEWLOG,"+I$
- 495 ERRSET 495,E1,E2
- 500 IFE2=15 THEN 400
- 510 IFE1=470 THEN 475
- 520 IF E1=410 THEN 420รจ550 IFE1=90 THEN100
- 560 IFE2<>7THEN580 ELSE PRINT"FILE ERROR"\GOTO400
- 580 IFE2<>8THEN590 ELSE PRINT"HARD DISC ERROR"\GOTO400
- 590 PRINT"ERROR ",E2,"AT LINE ",E1\GOTO400