RPOS [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
RPOS
RPOS is a numeric function that returns the number of the row where the
cursor is currently located. An integer in the range of one through the
maximum number of lines in your terminal's display memory is returned.
If your terminal has two pages of display, the value 48 is returned if
the cursor is located on the last line of display memory. The program
fragment:
100 CURSOR (999) !Position the cursor
120 T_rows = RPOS !Moment of truth; how much display memory?
can be used to find the number of lines of display memory in a terminal.
However, if the value 999 is returned, your terminal may have exceeded
the valid display memory range for these statements. HP Business
BASIC/XL determines cursor position by reading the position from the
terminal. So, typing on the keyboard during the execution of an RPOS
statement may cause an error.
Syntax
RPOS
Examples
300 PRINT RPOS
MPE/iX 5.0 Documentation