CursorRow (Screen property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 13: | Line 13: | ||
==Usage notes== | ==Usage notes== | ||
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>ScreenField</var> <var>[[SetCursor (ScreenField subroutine)|SetCursor]]</var> subroutine 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 18:48, 6 April 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
Although you can set an absolute position for the cursor using CursorRow and CursorColumn, it is generally more useful to use the ScreenField SetCursor subroutine to move the cursor to a particular field, independent of its absolute location on the screen.