< Futurebasic < Language < Reference 
      LOC
Syntax
result = LOC(deviceID)
Description
This function returns one of two things, depending on the value of deviceID.
- If deviceIDis the file ID number of an open file, the function returns the current location of the file mark as an offset from the beginning of the current record. For example, ifLOC(fileID)returns zero, the file mark is located at the beginning of the record. The file mark indicates where in the file the next input or output operation will occur.
- if deviceIDspecifies an open serial port (i.e., if its value is_modemPortor_printerPort), then the function indicates the status of the carrier signal. If returns_zTrueif the carrier is detected, or_falseif the carrier is not detected.
Note:
You can use LOC along with REC to determine the exact location of the file mark within the file.
See Also
REC; RECORD; OPEN; LOF; HANDSHAKE; OPEN "C"
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.