Previous Topic: &BROLINEn

Next Topic: &DATEn


&CURSCOL and &CURSROW

System variables that provide the cursor location.

These two system variables is used to determine the cursor row and column coordinates as at the last operator input from a panel displayed using the &PANEL statement.

&CURSROW is set to the number of the row that contained the cursor. When operating in split screen mode, the row is relative to the current window, regardless of where it commences on the physical screen.

&CURSCOL is set to the number of the column that contained the cursor. When operating in split screen mode, the column is relative to the current window, regardless of where it commences on the physical screen.

Note: If the last entry was caused by the INWAIT timer expiring, the value returned in

&CURSCOL/&CURSROW is indeterminate.

Examples: &CURSCOL and &CURSROW

&IF &CURSROW > 3 AND &CURSCOL > 6 &THEN +
    &GOSUB .XRACTSEL
&IF .&SYSMSG NE .  AND &CURSROW EQ 3 &THEN +
    &GOSUB .MSGHELP

These variables are designed to be used in conjunction with the CURSOR operand of the #OPT statement (of Panel Services) to effect precise cursor positioning to locations other than input fields.

Note: For information about using these facilities, see the Network Control Language Programming Guide.