xHarbour Reference Documentation > Function Reference |
Returns the current column position of the screen cursor
Col() --> nColPos
The function returns a numeric value indicating the current column position of the screen cursor. The leftmost column has position 0 and the rightmost position is identified by MaxCol().
The function returns the current cursor column 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: | @...CLEAR, @...GET, @...SAY, CLEAR SCREEN, MaxCol(), MaxRow(), PCol(), PRow(), Row(), SetMode(), 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 ? Col() // result: 0 ? "xHarbour" ? Col() // result: 8 RETURN
http://www.xHarbour.com