bas7advr.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LOC Function Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
LOC returns the current position within an open file.
LOC(filenumber%)
Usage Notes
■ For a COM device, LOC returns the number of characters in the input
queue waiting to be read. The value returned depends on whether the
device was opened in ASCII or binary mode.
■ In ASCII mode, the low-level routines stop queuing characters as
soon as end-of-file is received. The end-of-file itself is not
queued and cannot be read. If you attempt to read the end-of-file,
BASIC generates the error message, "Input past end of file."
■ In binary mode, the end-of-file character is ignored and the entire
file can be read.
■ For a PIPE device, LOC returns 1 if any data is available in the
PIPE queue.
Important
■ The LOC function cannot be used on ISAM tables, or the SCRN, KYBD,
or LPTn devices.