SetCursor Method
Positions the cursor in a given row and column of the screen. Optionally sends a key once the cursor has been positioned.
Syntax
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.SetCursor RowNum(iRowNum) ColNum(iColNum) SendKey(#myscreen_wrapper.<key property>)
Parameters
RowNum | Integer – Required | Integer that specifies the row number where to position the cursor. |
ColNum | Integer – Optional | Optional. Integer that specifies the column number where to position the cursor. Defaults to 1. |
SendKey | Property - Optional | The property of #myscreen_wrapper that resolves to the desired key. For a list of these properties See the SENDKEY Names in Function Key Names for SENDKEY Function in lansa049.chm. |
Return Value
None
Examples
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.setcursor Rownum(10) Sendkey(#myscreen_wrapper.keyenter)