Skip to content

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.

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.

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.

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.

INDEXED and SERIAL directives

From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF