
Chapter 15. Function Reference
337
____________________________________________________________________
POSition I/O function
POS
Returns the current column number of the cursor.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
POS(0)
Description:
Description:Description:
Description:
POS returns the current column number of the cursor in the current display mode selected
by a SCREEN statement, as an integer.
Screen mode Font size Column number
Single-byte ANK mode Standard-size 1 to 22
Small-size 1 to 22
Two-byte Kanji mode Standard-size 1 to 17
Small-size 1 to 22
• Even if the cursor is invisible (by a LOCATE statement), the POS function operates.
• 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:
Reference:Reference:
Reference:
Statements: LOCATE and SCREEN
Functions:
CSRLIN
Comentários a estes Manuais