Specifications

Chapter 15. Function Reference
376
Syntax:
POS(0)
Description:
POS returns the current column number of the cursor in the current display mode
selected by a
SCREEN statement, as an integer.
Even if the cursor is invisible (by a
LOCATE statement), the POS function oper-
ates.
If the maximum value in the current screen mode is returned, it means that the
cursor stays outside of the rightmost column.
(0) is a dummy parameter that can have any value or expression, but generally it
is 0.
The range of the column numbers does not differ between the regular-size and
double-width characters.
For the current row number of the cursor, refer to the
CSRLIN function.
Reference:
POSition I/O function
POS
Returns the current column number of the cursor.
Screen mode Font size Column number
Single-byte ANK mode Standard-size 1 to 17
Two-byte Kanji mode Standard-size 1 to 26
Small-size 1 to 34
Statements:
LOCATE and SCREEN
Functions:
CSRLIN