CursorColumn (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template; edits, tags and links)
m (re-<var>)
Line 6: Line 6:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%currentNum</th>
<tr><th><var>%currentNum</var></th>
<td>A numeric variable to receive the current cursor column number.</td></tr>
<td>A numeric variable to receive the current cursor column number.</td></tr>
<tr><th>screen</th>
<tr><th><var>screen</var></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>newNum</th>
<tr><th><var>newNum</var></th>
<td>A numeric variable or expression setting the new column that the cursor will be positioned at.</td></tr>
<td>A numeric variable or expression setting the new column that the cursor will be positioned at.</td></tr>
</table>
</table>

Revision as of 23:59, 25 June 2011

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

The CursorColumn property either gets the column number where the cursor is currently positioned, or it sets the column number for the cursor position.

Syntax

%currentNumber = screen:CursorColumn screen:CursorColumn = newNumber

Syntax terms

%currentNum A numeric variable to receive the current cursor column number.
screen A reference to an instance of a Screen object.
newNum A numeric variable or expression setting the new column that the cursor will be positioned at.

Usage notes

  • Although you can set an absolute position for the cursor using CursorColumn and CursorRow, 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