CursorRow (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
This property gets the row number where the cursor is currently positioned, or it sets the 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==
==Syntax terms===
{{Template:Screen:CursorRow syntax}}
===Syntax terms===
<dl>
<dl>
<dt>%num  
<dt>%num  
Line 11: Line 12:
</dl>
</dl>


==Usage Notes==
==Usage notes==


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 (&#x201C;SetCursor subroutine&#x201D;, below) to move the cursor to a particular field, independent of its absolute location on the screen.
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}}

Revision as of 19:32, 18 March 2011

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


This property gets the row number where the cursor is currently positioned, or it sets the row number for the cursor position.

Syntax

%currentNumber = screen:CursorRow screen:CursorRow = newNumber

Syntax terms

%num
A numeric variable or expression for the cursor's row number.
%screen
A reference to an instance of a Screen object.

Usage notes

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 (&#x201C;SetCursor subroutine&#x201D;, below) to move the cursor to a particular field, independent of its absolute location on the screen.

See also