home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
misc
/
c3zcz_15
/
logbook.prg
< prev
next >
Wrap
Text File
|
1985-10-02
|
5KB
|
168 lines
* G3ZCZ AMATEUR RADIO LOG PACKAGE 851001
* COPYRIGHT JOE KASSER G3ZCZ 1985
SET TALK OFF
* DEFAULT DATA NEEDS CUSTOMISING FOR YOUR STATION
STORE 'G3ZCZ/4X' TO callsign
STORE 'A:' TO diskdrive
STORE ' ' TO logbook
STORE ' ' TO task
SET DEFAULT TO &diskdrive
DO WHILE task <> '*'
ERASE
* DISPLAY MENU
@ 2,10 SAY 'G3ZCZ LOGGING PACKAGE VERSION 1.0'
@ 4,30 SAY 'DEFAULT DRIVE SET TO '
@ 4,53 SAY DISKDRIVE
@ 4,1 SAY 'CURRENT LOGBOOK IS'
@ 4,21 SAY logbook
@ 6,1 SAY 'CHANGE LOG FILE L'
@ 7,1 SAY 'PRINT LOG PAGES P'
@ 8,1 SAY 'PRINT LOG INDEXED BY CALL SIGN C'
@ 9,1 SAY 'APPEND ENTRIES A'
@ 10,1 SAY 'UPDATE DXCC RECORDS D'
@ 11,1 SAY 'HUNT FOR PREFIX/CALL IN LOG H'
@ 12,1 SAY 'SUMMARISE LOG S'
@ 13,1 SAY 'UPDATE QSL STATUS Q'
@ 14,1 SAY 'PRINT DXCC RECORDS R'
@ 15,1 SAY 'QUIT LOGGING PACKAGE *'
@ 16,1 SAY 'Change default drive X'
@ 17,1 SAY 'Change operator callsign Z'
@ 18,1 SAY 'TRANSFER CONTEST DATA INTO LOG (manual) U'
@ 19,1 SAY 'Append Contest log (.LOG) to LOG V'
@ 20,1 SAY 'CREATE NEW LOGBOOK DATABASE N'
@ 22,1 SAY 'QRU'
@ 22,5 GET task
READ
DO CASE
CASE task = 'N'
@ 22,1 SAY "What is the name of the new Log file "
@ 22,40 GET logbook
READ
@ 22,1 SAY " "
USE blanklog
COPY STRUCTURE TO &logbook
USE &logbook
INDEX ON call TO &logbook
CASE task = 'R'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO DXCCPRINT
ENDIF
CASE task ='S'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGSTAT
ENDIF
CASE task = 'P'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGPRINT
ENDIF
CASE task = 'H'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGSRCH
ENDIF
CASE task = 'A'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGADD
ENDIF
case task = 'Q'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGQSL
ENDIF
CASE task = 'C'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGCALL
ENDIF
CASE task = 'D'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOGDXCC
ENDIF
CASE task = 'U'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO UPDATE
ENDIF
CASE task = 'V'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
ELSE
DO LOG2DBF
ENDIF
CASE task = 'X'
@ 4,53 GET diskdrive
READ
SET default TO &diskdrive
CASE task = 'Z'
ERASE
@ 10,1 SAY "CALL SIGN IS "
@ 10,25 GET callsign
READ
CASE task = 'L'
@ 22,1 SAY "Which Log file "
@ 22,15 GET logbook
READ
@ 22,1 SAY " "
ENDCASE
ENDDO
USE
RELEASE task
RETURN
"
ENDCASE
ENDDO
RELEASE task
RETURN
12,1 SAY 'SUMMARISE LOG S'
@ 13,1 SAY 'UPDATE QSL STATUS Q'
@ 14