Cursor

Syntax

CURSOR [ variable | ENDOFPAGE ]

Parameters

Cursor can be abbreviated as CU.

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