home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of the Best
/
_.img
/
02192
/
logbook.arc
/
OBLASTEN.PRG
< prev
next >
Wrap
Text File
|
1987-12-24
|
3KB
|
92 lines
* OBLASTENTER VERSION 871209 PUTS DATA IN OBLAST DATABASE
IF FILE (logbook + '.DBF')
SELECT A
USE &logbook INDEX &logndx
SELECT B
USE &oblast
STORE .T. TO cflag
STORE 0 TO oblastn
STORE ' ' TO df
STORE ' ' TO callcard
DO WHILE cflag
CLEAR
@ 3,1 SAY ' '
ACCEPT 'Which Oblast (0 to terminate) ?' TO oblastn
IF &oblastn < oblastm
IF &oblastn = 0
STORE .F. TO cflag
ELSE
SELECT B
* GO DIRECTLY TO RECORD
GOTO &oblastn
@ 8,1 SAY ' '
IF dcall = ' '
? 'Oblast ',&oblastn,' is not worked'
ELSE
DISP
ENDIF
@ 10,1 SAY 'Do you want to update the entry (Y/N) ?'
@ 10,43 GET df
READ
IF df = 'Y'
STORE ' ' TO callcard
SELECT A
@ 12,1 SAY 'What is the call ? '
@ 12,21 GET callcard
READ
FIND &callcard
@ 14,1 SAY ' '
IF (EOF() .OR. BOF())
? callcard,' is not in log'
ELSE
STORE .T. TO qflag
DO WHILE call = callcard .AND. qflag
@ 20,1 SAY ' '
DISP
@ 22,2 SAY ' '
ACCEPT 'This one (Y/N) ?' TO df
IF df = 'Y'
STORE .F. TO qflag
ENDIF
SKIP
ENDDO
IF qflag
* DON'T update entry
ELSE
SKIP -1
STORE call TO call
STORE date TO date
STORE time TO time
STORE band TO band
STORE mode TO mode
STORE qslrx TO qslrx
SELECT B
REPLACE dcall WITH call
REPLACE ddate WITH date
REPLACE dtime WITH time
REPLACE dband WITH band
REPLACE dmode WITH mode
REPLACE dstate WITH qslrx
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
? 'ERROR, LARGEST NUMBER IS ',oblastm - 1
WAIT
ENDIF
ENDDO
SELECT A
USE
SELECT B
USE
ELSE
? 'ERROR,',logbook,' IS NOT ON DEFAULT DRIVE'
ENDIF
RELEASE qflag, callcard, df, oblastn, cflag,
RELEASE call, date, time, band, mode, qslrx
RETURN