xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Row()

Returns the current row position of the screen cursor.

Syntax

Row() --> nRowPos

Return

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().

Description

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.

Info

See also:?|??, @...GET, @...SAY, Col(), MaxRow(), PCol(), PRow(), SETPOS()
Category: Screen functions
Source:rtl\setpos.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The examples displays and changes the screen cursor position.

   PROCEDURE Main
      CLS

      ? Row(), Col()                   // result: 0  0

      ? "xHarbour"

      ? Row(), Col()                   // result: 2  8
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe