ProvideX V8.20 > Language Reference > 3. System Functions
506
RCD( ) Function
         Return Next Record
Format
RCD(chan[,fileopt])
Where:
chan
Channel or logical file number of file to reference.
Supported file options (see also, File Options, p.808):
fileopt
DOM=stmtref Missing record transfer
END=stmtref End-Of-File transfer
ERR=stmtref Error transfer
IND=num Record index
KEY=string$ Record key value
KNO=num | name$ File access key number (num) or name (name$)
RNO=num Record number
Returns
Contents of next or given record.
Description
The RCD( ) function returns the contents of either the next record in the given file or
of the record identified in a KEY=, RNO=, or IND= option. ProvideX effectively
issues a READ RECORD directive when it encounters this function and returns the
contents of the given record.
See Also
READ RECORD Directive, p.273
Example
0010 OPEN (13)ARG(-1) ! pvx.ini
0020 PRINT RCD(13,END=40)
0030 GOTO 0020
0040 STOP
-:run
[WindowFrame]
TypeSizeLoc=1,648,485,84,340