Loc; Lof - Epson TF-20 Reference Manual

Hx-20 disk basic
Hide thumbs Also See for TF-20:
Table of Contents

Advertisement

LOC

To return the current record No.
LOC (<file No.>)
PRINT LOC (1)
If the file specified in <file No.> was opened in the R mode,
the record No. of the record used in the last GET or PUT
statement is returned If the file was opened in the I mode,
the number of logical sectors (128-byte units) read so far is
returned. If the file was opened in the 0 mode, the number
of sectors written so far is returned.
(See OPEN.)

LOF

Returns the largest record No. in the file
LOF (<file No.>)
IF R>LOF (1) THEN 100
LOF returns the largest record No. written into the specified
file.
will yield the same result as
10
20
These functions can be used independent of file operations.
(See CVI, CVS, CVD.)

Advertisement

Table of Contents
loading

Table of Contents