CursorRow (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (re-<var>)
m (unvar)
Line 6: Line 6:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th><var>currentNum</var></th>
<tr><th>currentNum</th>
<td>A numeric variable to get the cursor's current row number. </td></tr>
<td>A numeric variable to get the cursor's current row number. </td></tr>
<tr><th><var>screen</var></th>
<tr><th>screen</th>
<td>A reference to an instance of a <var>Screen</var> object.</td></tr>
<td>A reference to an instance of a <var>Screen</var> object.</td></tr>
<tr><th><var>newNum</var></th>
<tr><th>newNum</th>
<td>A numeric variable or expression to set the cursor's new row number. </td></tr>
<td>A numeric variable or expression to set the cursor's new row number. </td></tr>
</table>
</table>

Revision as of 10:27, 28 June 2011

Return the row number of the cursor position (Screen class)

The CursorRow property returns gets the row number where the cursor is currently positioned, or it sets the new row number for the cursor position.

Syntax

%currentNumber = screen:CursorRow screen:CursorRow = newNumber

Syntax terms

currentNum A numeric variable to get the cursor's current row number.
screen A reference to an instance of a Screen object.
newNum A numeric variable or expression to set the cursor's new row number.

Usage notes

  • Although you can set an absolute position for the cursor using CursorRow and CursorColumn, it is generally more useful to use the SetCursor subroutine to move the cursor to a particular field, independent of its absolute location on the screen.

See also