LOTUSSCRIPT LANGUAGE


Seek function
Example

Returns the file position (the byte position in a binary file or the record number in a random file) in an open file.

Syntax

Seek ( fileNumber )

Elements

fileNumber


Return value

Seek returns a Long value between 1 and 2.0E31 - 1, inclusive, unless the file position is very large. For a file position larger than 2.0E30, the return value is negative.

For a binary or sequential file, Seek returns the current byte position within the file.

For a random file, Seek returns the number of the next record within the file.

Usage

The first byte or record in a file is always file position 1.

Example
See Also