Futurebasic/Language/Reference/rec

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Syntax[edit | edit source]

REC(fileID)

Description[edit | edit source]

This function returns the record number of the record where the "file mark" is currently located, in the open file specified by fileID. The first record in the file is considered Record #0. To calculate the record number, REC uses the record length that was specified in the OPEN statement when the file was opened. If no record length was specified, a default length of 256 bytes is used. If you specified a record length of "1" when you opened the file, REC returns the file mark's byte position within the file.

Note: To determine the file mark's offset from the beginning of the record, use the LOC function.

See Also[edit | edit source]

RECORD; LOC; OPEN