LOC()

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
LOC( [#]fnbr )

Description:
For a file on the SD card opened as RANDOM this will return the current position of the read/write pointer in the file. 
Note that the first byte in a file is numbered 1. 

For a serial communications port opened as 'fnbr' this function will return the number of bytes received and waiting in the receive buffer to be read. 
#0 can be used which refers to the console's input buffer. The # is optional.

 

Last edited: 29 September, 2020