Syntax
CURSOR [ variable | ENDOFPAGE ]
Parameters
Cursor can be abbreviated as CU.
variable
An attribute field specifying the position of the cursor. It must be a user interface attribute that allows data input, and the attribute being set in the field must be of primitive type or a reference.
ENDOFPAGE
The EndOfPage or EOP command option is not supported on applications deployed to Windows.
For MCP-based systems only, the cursor can be positioned at the end of the page, by including the EndOfPage or EOP command option.
Description
The Cursor logic command specifies the user interface attribute or key on which to position the cursor when the user interface is displayed. It overrides the ispec's Default Cursor Field property.
If multiple Cursor logic statements are specified, the last Cursor logic statement executed determines the position of the cursor.
OLTP
When processing an OLTP-originated transaction, the Cursor command will be ignored. No user indication is given.
Restrictions
Cursor positioning has no effect when multiple error messages are displayed.
Example
This example positions the cursor on the Price attribute when an error condition is invoked.
If Price = Zeros Cursor Price Message Attention "Price cannot be zero" EndExit