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
|
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);