Defining the field input loop

The OPTIONS INPUT [NO] WRAP instructions defines field wrapping in dialogs.

Syntax

OPTIONS INPUT [NO] WRAP

Usage

By default, an interactive statement such as CONSTRUCT or INPUT terminates when the focus leaves the last field controlled by the dialog instruction.

The OPTIONS INPUT WRAP instruction can change this behavior, causing the focus to move from the last field to the first, repeating the sequence of fields until the dialog is validated or canceled.

When executing a DIALOG block and the OPTIONS INPUT WRAP instruction is used, the focus loop applies to the whole mutiple-dialog block: When tabbing out from the last field of the last sub-dialog, the focus goes to the first field of the first sub-dialog.

The INPUT NO WRAP option restores the default input loop behavior.

Example

MAIN
    OPTIONS INPUT WRAP
    ...
END MAIN