Moves the cursor to the specified column within the Editor.
Scope: View
Syntax
query cursorcol
set cursorcol ColumnNumber
Option
ColumnNumber |
The window column where the cursor is to be positioned. |
Description
The cursorcol parameter moves the cursor to the specified column within the Editor. The columns that form the prefix area are assigned negative numbers. If the window width is less than the specified ColumnNumber, a message is displayed and the cursor remains in its current position. The cursor will not be moved beyond the rightmost column on the Editor.
Example
To set the cursor to column 34, type:
set cursorcol 34
If the window width is less than 34 columns, a message is displayed and the cursor remains in its current position.
API Return Codes
-2 |
The number specified was either outside the valid range or not a whole number. Issue the command again using a valid number. |
![]()
cursorpos Parameter
cursorrow Parameter
