home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of the Best
/
_.img
/
02192
/
logbook.arc
/
LOGSRCH.PRG
< prev
next >
Wrap
Text File
|
1987-11-20
|
1KB
|
51 lines
*LOGSRCH VERSION 871120
* CALLED FROM LOGBOOK
*LOCAL VARIABLES callflag,callheard,linecount
USE &logbook INDEX &logndx
STORE .T. TO callflag
*MAIN LOOP
DO WHILE callflag
GOTO TOP
ACCEPT "Call/Prefix (* To terminate) ? " to callheard
IF callheard = "*"
STORE .F. TO callflag
* Clear loop control for exit
ELSE
STORE 1 TO linecount
CLEAR
? "Log entries for CALL PREFIX = ", callheard
?
FIND &callheard
IF (EOF() .OR. BOF())
@ 5,1 SAY callheard
@ 5,12 say "does not appear to be in the log"
ELSE
DO WHILE CALL = callheard .AND. (.NOT.EOF())
IF linecount = 1
? " ENTRY CALL DATE TIME BND PWR TX RX MDE S R "
?? "COMMENTS"
? " ---------------------------------------------------------"
?? "--------"
ENDIF
? RECNO(),call,date,time,band,power,rx,tx,mode,qslsent,qslrx,comments
STORE linecount + 1 TO linecount
IF linecount = 20
?
WAIT
STORE 1 TO linecount
ENDIF
SKIP
ENDDO
ENDIF
?
?
ENDIF
GOTO TOP
ENDDO
USE
RELEASE callflag,callheard,linecount
RETURN