home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 3
/
hamradioversion3.0examsandprograms1992.iso
/
log
/
db3log
/
contdup.prg
< prev
next >
Wrap
Text File
|
1987-03-14
|
3KB
|
112 lines
* CONTDUP.PRG
* CALLED BY HAM.CMD
* REV 10/01/83
* REV 03/08/87 FOR USE ON PC
SET TALK OFF
USE CONTEST INDEX CONTEST
SET INDEX TO CONTEST
STORE 1 TO CONTACT
DO WHILE .T.
CLEAR
@ 0,25 SAY '**** CONTEST LOG FILE *****'
@ 2,0 SAY 'ENTER [ END ] TO EXIT'
@ 3,0 SAY 'ENTER [ LAST ] TO VIEW LAST ENTRY'
@ 3,40 SAY 'NEXT REPORT NUMBER IS:'
@ 3,62 SAY CONTACT
?
?
ACCEPT 'CALL: ' TO MCALL
STORE UPPER(MCALL) TO MCALL
IF MCALL = 'END'
SET TALK ON
CLEAR
RETURN
ENDIF
IF MCALL = 'LAST'
USE CONTEST
GOTO BOTTOM
DISPLAY
ACCEPT 'AMMEND: ' TO MAMMEND
STORE UPPER(MAMMEND) TO MAMMEND
IF MAMMEND = 'Y'
EDIT
ENDIF
RELEASE MAMMEND
RELEASE MCALL
CLEAR
USE CONTEST INDEX CONTEST
SET INDEX TO CONTEST
LOOP
ENDIF
FIND &MCALL
IF (EOF() .OR. BOF())
@ 12,40 SAY 'CALL NOT FOUND'
ACCEPT 'ENTER: ' TO MENTER1
STORE UPPER(MENTER1) TO MENTER1
IF MENTER1='Y'
GO BOTTOM
DO GETUTC
CLEAR
APPEND BLANK
REPLACE HOUR WITH MHOUR
REPLACE MIN WITH MMIN
REPLACE CALL WITH MCALL
REPLACE HISSIG WITH '59'
REPLACE BAND WITH MBAND
REPLACE MONTH WITH MMO
REPLACE DAY WITH MDAY
REPLACE YEAR WITH MYR
@ 0,25 SAY '**** CONTEST LOG FILE ****'
@ 3,0 SAY 'LOGGING '+CALL+' ON THE '+BAND+' METER BAND'
@ 7,0 SAY 'EXCHANGE ' GET EXCHANGE
@ 8,0 SAY 'FREQUENCY ' GET FREQUENCY
@ 9,0 SAY 'HIS QSL MAN ' GET QSLMAN
READ
? CHR(23)
STORE CONTACT+1 TO CONTACT
LOOP
ENDIF
ENDIF
IF CALL = MCALL
@ 9,0 SAY 'CALL'
@ 9,11 SAY 'EXCHANGE'
@ 9,23 SAY 'DATE'
@ 9,29 SAY 'TIME'
@ 9,38 SAY 'BAND'
@ 9,45 SAY 'FREQUENCY'
?
DO WHILE CALL = MCALL .AND..NOT. EOF()
? CALL,EXCHANGE,MONTH,DAY,HOUR,MIN," ",BAND," ",FREQUENCY
SKIP
ENDDO
ACCEPT 'ENTER: ' TO MENTER
STORE UPPER(MENTER) TO MENTER
IF MENTER='Y'
GO BOTTOM
DO GETUTC
CLEAR
APPEND BLANK
REPLACE HOUR WITH MHOUR
REPLACE MIN WITH MMIN
REPLACE CALL WITH MCALL
REPLACE HISSIG WITH '59'
REPLACE BAND WITH MBAND
REPLACE MONTH WITH MMO
REPLACE DAY WITH MDAY
REPLACE YEAR WITH MYR
@ 0,25 SAY '**** CONTEST LOG FILE ****'
@ 3,0 SAY 'LOGGING '+CALL+' ON THE '+BAND+' METER BAND'
@ 7,0 SAY 'EXCHANGE ' GET EXCHANGE
@ 8,0 SAY 'FREQUENCY ' GET FREQUENCY
@ 9,0 SAY 'HIS QSL MAN ' GET QSLMAN
READ
? CHR(23)
STORE CONTACT+1 TO CONTACT
LOOP
ENDIF
ENDIF
RELEASE MCALL
CLEAR
ENDDO
RETURN