Set cursor position
To position the cursor to a specific field upon form entry, a 'SETCURSOR' call can be added to Amt COBOL Forms.
The syntax for this call is as follows:
CALL 'SETCURSOR' USING '<FieldName>'.
Parameter | Description |
<FieldName> | The name of the field where the cursor should be positioned initially. |
This 'SETCURSOR' call can only be used inside a AMT COBOL form object.
Please note that the 'SETCURSOR' call will be overruled if a cursor position is set via attribute fields.
Example:
PROCEDURE DIVISION.
WS-TO-FORM SECTION.
INIT-WS-TO-FORM.
CALL 'SETCURSOR' USING 'CUSTNO'.
EXIT-WS-TO-FORM-END.
...