CPOS [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
CPOS
The CPOS function returns the column position of the cursor in display
memory. For terminals that have a display 80 columns wide, a value in
the range 1..80 is returned. A return value of 1 corresponds to the
leftmost column and a return value of 80 corresponds to the rightmost
column. The program fragment:
100 CURSOR (,45) ! Position cursor to column 45
120 PRINT CPOS ! Prints position of the cursor in display memory
prints the number 45. CPOS determines the cursor position by reading it
from the terminal. Therefore, typing on the keyboard while a CPOS
statement is executing may cause an error.
Syntax
CPOS
Examples
200 PRINT CPOS
MPE/iX 5.0 Documentation