Navigation: thinBasic Modules > Console > Console_SetCursorPosition |
|
Description
Sets the cursor position.
Syntax
Console_SetCursorPosition(nXpos, nYPos)
Returns
Parameters
Name |
Type |
Optional |
Meaning |
nXpos |
Numeric |
No |
New X position. If 0 (zero), current cursor X position will not change If negative, the ABS of nXpos will be subtracted to current cursor X position |
nYpos |
Numeric |
No |
New Y position. If 0 (zero), current cursor Y position will not change If negative, the ABS of nXpos will be subtracted to current cursor Y position |
Remarks
Restrictions
See also
Console Module, Console_SetCursorSize
Examples
Console_SetCursorPosition(10, 10) '---Change X and Y position
Console_SetCursorPosition(0 , 10) '---Change only Y position
Console_SetCursorPosition(10, 0) '---Change only X position
Console_SetCursorPosition(-2, 0) '---Y position will not change
'---Current X position will move 2 position back
Console_SetCursorPosition(0, -2) '---X position will not change
'---Current Y position will move 2 lines up
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |