Positions the cursor in a given field on a screen or subfile.
Syntax
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.SetCursorToField Name(SURNAME)
Parameters
Name | Char 256 – Required | String that specifies the name of the field to position the cursor at. |
|---|---|---|
Index | Integer - Optional | An Integer that specifies the subfile row of the field. |
|
Return Value
None
Examples
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.setcursortofield Name(SURNAME) Index(3)