RAD function: cursor.line

A RAD function that returns the line number where the cursor was positioned when the user performed an action such as clicking Fill or Find, or double-clicking an item in a QBE list. If the action opens a new form, cursor.line returns the focus on the pop-up form.

Function

cursor.line

Format

cursor.line(n)

Factors

  • $l=cursor.line() = the numeric value of the line where the cursor was positioned.
  • $l=cursor.line(1) = the numeric value of the index of the array or structure where the cursor was last located, including consideration for vertical scrolling. If the cursor is in an array input field, $l contains the numeric value of the index of the array in which the cursor is positioned. If the cursor is not in an array input field, $l contains the numeric value, relative to the format in which the cursor is positioned, including accounting for vertical scrolling, which may be greater than the client's screen length.