CursorRow (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:Screen:CursorRow subtitle}}
{{Template:Screen:CursorRow subtitle}}
The <var>CursorRow</var> property returns gets the row number where the cursor is currently positioned, or it sets the new row number for the cursor position.


This property gets the row number where the cursor is currently positioned, or it sets the row number for the cursor position.
==Syntax==
==Syntax==
{{Template:Screen:CursorRow syntax}}
{{Template:Screen:CursorRow syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt>%num
<tr><th>%currentNum</th>
<dd>A numeric variable or expression for the cursor's row number.
<td>A numeric variable to get the cursor's current row number. </td></tr>
<dt>%screen  
<tr><th>screen</th>
<dd>A reference to an instance of a Screen object.
<td>A reference to an instance of a <var>Screen</var> object.</td></tr>
</dl>
<tr><th>newNum</th>
<td>A numeric variable or expression to set the cursor's new row number. </td></tr>
</table>


==Usage notes==
==Usage notes==
<ul><li>Although you can set an absolute position for the cursor using <var>CursorRow</var> and <var>[[CursorColumn (Screen property)|CursorColumn]]</var>, it is generally more useful to use the <var>[[SetCursor (ScreenField subroutine)|SetCursor]]</var> subroutine to move the cursor to a particular field, independent of its absolute location on the screen.
</ul>


You can set an absolute position for the cursor using the CursorRow and CursorColumn properties, but it is generally more useful to use the ScreenField SetCursor function (&amp;#x201C;SetCursor subroutine&amp;#x201D;, below) to move the cursor to a particular field, independent of its absolute location on the screen.
==See also==
==See also==
{{Template:Screen:CursorRow footer}}
{{Template:Screen:CursorRow footer}}

Latest revision as of 06:16, 1 July 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