LOTUSSCRIPT LANGUAGE


LOC function
Ejemplo

Returns the current position of the file pointer in a file.

Syntax

LOC ( fileNumber )

Elements

fileNumber


Return value

The following table presents the LOC return values for random, sequential, and binary files.
File typeReturn value
Random The number of the last record read from or written to the file. This is the file pointer position, minus 1.
SequentialThe byte position in the file, divided by 128 and truncated to an integer.
BinaryThe position of the last byte read from or written to the file. This is the file pointer position, minus 1.

Ejemplo
Véase también


Glosario
¿Desea opinar sobre la Ayuda o sobre la utilidad del producto?