home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
log
/
logbook
/
logbook.prg
< prev
next >
Wrap
Text File
|
1987-07-27
|
2KB
|
90 lines
* G3ZCZ AMATEUR RADIO LOG PACKAGE 861128
* (c) COPYRIGHT JOE KASSER G3ZCZ 1985,1986,1987
SET TALK OFF
CLEAR
STORE 'LOG ' TO logndx
STORE 'LOG ' TO logbook
STORE 'WAZ ' TO waz
STORE 'WAS ' TO was
STORE 'AWARD ' TO award
STORE 'DXCC ' TO dxcc
STORE 'OBLAST ' TO oblast
STORE 'G3ZCZ ' TO callsign
STORE 0 TO gmt
STORE 'LOGBOOK' TO susie
IF FILE(susie+'.MEM')
RESTORE FROM LOGBOOK
ELSE
ERASE
@ 12,4 SAY 'INITALISATION SEQUENCE '
?
ACCEPT 'What is your callsign ? ' TO callsign
ACCEPT 'What is your offset to UTC (HH) ? ' TO cgmt
STORE VAL(cgmt) TO gmt
ENDIF
RELEASE susie
STORE ' ' TO task
DO WHILE task <> '*'
ERASE
* DISPLAY MENU
@ 2,10 SAY 'G3ZCZ LOGGING PACKAGE VERSION 2.25'
@ 4,15 SAY 'COPYRIGHT (c) 1986, 1987'
@ 6,1 SAY 'Default LOG database is'
@ 6,25 SAY logbook
@ 8,10 SAY 'LOG FUNCTIONS L'
@ 9,10 SAY 'AWARDS A'
@ 10,10 SAY 'MISCELLANEOUS FUNCTIONS M'
@ 11,10 SAY 'DISPLAY FILES ON DISK DRIVE F'
@ 16,10 SAY 'RETURN TO DOS Q'
@ 18,10 SAY 'QUIT LOG PACKAGE *'
@ 20,1 SAY 'QRU'
@ 20,10 GET task
READ
DO CASE
CASE task = 'F'
ERASE
ACCEPT 'WHICH DRIVE ' TO diskdrive
STORE diskdrive + ':' TO diskdrive
DISPLAY FILES ON &diskdrive
RELEASE diskdrive
WAIT
CASE task = 'L'
DO LOGFUNCT
CASE task = 'A'
DO LOGAWARD
CASE task = 'M'
DO LOGMISCF
CASE task = 'Q'
QUIT
ENDCASE
ENDDO
RELEASE task,cgmt
SAVE TO logbook
USE
ERASE
@ 12,12 SAY 'Enter QUIT <CR> to return to DOS'
@ 20,40 SAY '73 de G3ZCZ'
RETURN
SET INDEX TO &logbook
ERASE
*MAIN LOOP
DO WHILE callflag
STORE "-" TO nqslsent
STORE "-" TO nqslrx
STORE " " TO ncall
* CHANGE THE LENGTH OF THE SPACES BETWEEN THE " " ON THE NEXT LINE
* IF YOU CHANGE THE WIDTH OF THE COMMENTS
S