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 cursor to move from the last field to the first, repeating the sequence of fields until the dialog is validated or canceled.

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

Example

MAIN
    OPTIONS INPUT WRAP
    ...
END MAIN