xHarbour Reference Documentation > Function Reference |
Changes the position of the screen cursor in text mode.
SetPos( <nRow>, <nCol> ) --> NIL
The return value is always NIL.
The function SetPos() moves the screen cursor in text mode applications to the specified row and column coordinates. The new position is reflected by the functions Row() and Col(). Use function SetCursor() to change visibility and shape of the cursor.
The current screen cursor position is used by console commands and functions which do not recognize screen coordinates as starting point for display.
See also: | Col(), Row(), SET CURSOR, SetCursor(), SetPosBs() |
Category: | Screen functions |
Source: | rtl\setpos.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The displays the current positionof the screen cursor, changes it // and displays a string at the new position. PROCEDURE Main CLS ? Row(), Col() SetPos( 13, 30 ) ?? "New output goes here" ? Row(), Col() RETURN
http://www.xHarbour.com