| Directives |
|
| Format | FIND
RECORD (chan[,fileopt])var$
|
|||||||||||||||||||||||||||||||||||||
| Description | Use
the FIND RECORD directive to read a
record from the file (channel) you specify. The record's
complete data portion will be returned in the string
variable you name. Apply the FIND RECORD statement
when dealing with native-mode operating system files,
when exchanging data with applications other than
ProvideX, or when you want to read a complete record
including data-field separators. When executing a FIND RECORD directive, ProvideX advances the file position to the next record (or the record you specify in a KEY= or IND= option). Use the KNO= option to change the current file access key. |
|||||||||||||||||||||||||||||||||||||
| *Note* | If the record is not found when reading using a KEY= or IND= option, the current file position is not changed (unlike READ). | |||||||||||||||||||||||||||||||||||||
| See Also | EXTRACT
Read and Lock Data READ Read Data from File. |
|||||||||||||||||||||||||||||||||||||
| Examples | 0020
OPEN LOCK (2)"NEWFIL" 0030 FIND RECORD (1,END=1000)R$ 0040 WRITE RECORD (2)R$ 0050 GOTO 0030 1000 CLOSE (1),(2) 1010 END |
|||||||||||||||||||||||||||||||||||||