| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Returns the current row position of the screen cursor.
Row() --> nRowPos
The function returns a numeric value indicating the current row position of the screen cursor. The top row has position 0 and the bottom position is identified by MaxRow().
The function returns the current cursor row position within a console window (text-mode). The cursor position changes with screen output using console output commands and functions.
Use function SetPos() to position the screen cursor at a defined row and column coordinate.
| See also: | ?|??, @...GET, @...SAY, Col(), MaxRow(), PCol(), PRow(), SETPOS() |
| Category: | Screen functions |
| Source: | rtl\setpos.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The examples displays and changes the screen cursor position.
PROCEDURE Main
CLS
? Row(), Col() // result: 0 0
? "xHarbour"
? Row(), Col() // result: 2 8
RETURN
http://www.xHarbour.com