home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
747.LOG2DBF.PRG
< prev
next >
Wrap
Text File
|
1985-10-01
|
1KB
|
43 lines
* CONVERTS A BASIC LOG FILE TO A DATABASE
USE blanklog
* EMPTY LOG FILE
STORE ' ' TO contestlog
ACCEPT 'What is the name of the contest log (D:NAME) ' TO contestlog
COPY STRUCTURE TO &contestlog
?
?' New database file created'
USE &contestlog
STORE TRIM(contestlog) + '.LOG' TO oldlog
?
? 'Copying log data now'
APPEND FROM &oldlog SDF DELIM
STORE ' ' TO df
ACCEPT ' Do you want a listing of the database (Y/N) ? ' TO df
IF df = 'Y'
LIST
?
ENDIF
ACCEPT 'Do you want to append the new log to the main logbook (Y/N) ?' TO df
IF df = 'Y'
?
USE &logbook INDEX &logbook
APPEND FROM &contestlog
ENDIF
ACCEPT 'Do you want to INDEX the contest log (DBF) (Y/N) ?' TO df
IF df = 'Y'
?
USE &contestlog
INDEX ON call TO &contestlog
? 'TO PRINT CONTEST LOG, go back to main menu'
?
? 'SET LOG TO contestlog, AND PRINT IT'
WAIT
ENDIF
RELEASE oldlog,df,contestlog
RETURN
IF logbook = ' ' .AND. task <> 'L'
@ 23,1 SAY 'OPEN A LOGBOOK FIRST