SETCURSORTOFIELD Function
Moves the cursor to the specified field, or piece of text or subfile cell.
This function is intended to programmatically manipulate the coordinates (5250 row and column) of the underpinning 5250 screen cursor - rather than anything visual on the currently displayed web page. Typically a call to this function is immediately followed by a SENDKEY function call.
Syntax
SETCURSORTOFIELD(sFieldName, iInd)
Parameters
sFieldName |
Required. A string that contains the name of the field to set the cursor to. This can be any named field or text or subfile column. |
iInd |
Required for subfiles. Integer, must be greater than zero. For subfile fields this is the specific instance of the field (the row within the column). |
Return Value
None
Remarks
The cursor can be set to any named field or text or subfile column on the screen.
Example
Set the cursor to the field named as givename, in RAMP-TS
SETCURSORTOFIELD("givename");
Set the cursor to the field named ColDepartment in a subfile, fifth row down
SETCURSORTOFIELD("ColDeptment", 5);