IND
Index
This numeric function returns the index number of the next position of the record pointer in the file OPEN on the specified channel.
Syntax
Section titled “Syntax”IND (channel [,ERR=line-ref ,END=line-ref])channel- is an integer in the range of 0 to 32764 specifying the channel number of an OPEN file.
line-ref- is the program line number or label to branch to if an error is produced by this function.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Remarks
Section titled “Remarks”This function is used with INDEXED and SERIAL files and indicates the sequential number of the next record in the file. Valid values range from 0 up to a maximum of 2,147,483,647 records.
Examples
Section titled “Examples”LET INDEXED_POINTER = IND (1, ERR=17200)sets INDEXED_POINTER to the index number of the next record in the file OPEN on channel 1. If an error occurs, the program will branch to line number 17200.
See also
Section titled “See also”From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF