home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of the Best
/
_.img
/
02192
/
logbook.arc
/
LOGMISCF.PRG
< prev
next >
Wrap
Text File
|
1987-12-24
|
4KB
|
117 lines
*LOGMISCF BY JOE KASSER G3ZCZ VER 860728
DO WHILE task <> '*'
CLEAR
@ 2,10 SAY 'MISCELLEANEOUS FUNCTIONS VERSION 1.6'
@ 5,1 SAY 'CURRENT LOGBOOK '
?? logbook
@ 8,1 SAY 'CHANGE LOG FILE L'
@ 9,1 SAY 'MANUAL TRANSFER OF DATA TO CONTEST LOGS U'
@ 10,1 SAY 'APPEND FROM BASIC "LOG" FILE TO "DBF" FILE V'
@ 11,1 SAY 'DISPLAY FILES ON DISK DRIVE F'
@ 12,1 SAY 'DXPEDITION/CONTEST BATCH QSL FUNCTION Q'
@ 13,1 SAY '(RE) INDEX A LOGBOOK DATABASE FILE I'
@ 14,1 SAY 'CHANGE OFFSET TO UTC T'
@ 15,1 SAY 'CHANGE STATION OPERATOR CALL SIGN C'
@ 18,1 SAY 'Quit this menu *'
@ 20,1 SAY 'QRU'
@ 20,5 GET task
task = UPPER(task)
READ
DO CASE
CASE task = 'U'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
WAIT
ELSE
IF FILE(logbook +'.DBF')
DO LOGUPDAT
ELSE
? 'ERROR- LOGBOOK IS NOT ON DEFAULT DRIVE'
WAIT
ENDIF
ENDIF
CASE task = 'I'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
WAIT
ELSE
IF FILE(logbook + '.DBF')
USE &logbook
SET TALK ON
INDEX ON call+band TO &logndx
SET TALK OFF
USE
ELSE
? 'ERROR- LOGBOOK IS NOT ON DEFAULT DRIVE'
WAIT
ENDIF
ENDIF
CASE task = 'Q'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
WAIT
ELSE
IF FILE(logbook + '.DBF')
DO DXPDNQSL
ELSE
? 'ERROR- LOGBOOK IS NOT ON DEFAULT DRIVE'
WAIT
ENDIF
ENDIF
CASE task = 'V'
IF logbook = ' '
@ 23,1 SAY 'OPEN A LOGBOOK FIRST'
STORE 'L' TO task
WAIT
ELSE
DO LOG2DBF
ENDIF
CASE task = 'F'
CLEAR
ACCEPT 'WHICH DRIVE ? ' TO diskdrive
diskdrive = LEFT(diskdrive,1)
STORE diskdrive + ':' TO diskdrive
DISPLAY FILES ON &diskdrive
RELEASE diskdrive
WAIT
CASE task = 'C'
CLEAR
@ 10,1 SAY "CALL SIGN IS "
@ 10,25 GET callsign
READ
CASE task = 'L'
@ 22,1 SAY 'Which Log file '
@ 22,15 GET logbook
@ 22,30 SAY 'Which Index file'
@ 22,48 GET logndx
READ
IF FILE (logbook + '.DBF')
@ 22,1 SAY ' '
ELSE
@ 22,1 SAY ' '
? 'ERROR, ',logbook, 'IS NOT PRESENT ON DRIVE'
WAIT
ENDIF
CASE task = 'T'
ACCEPT 'What is your offset to UTC (HH) ? ' TO cgmt
STORE VAL(cgmt) TO gmt
RELEASE cgmt
ENDCASE
ENDDO
STORE ' ' TO task
RETURN