TABINDEX attribute

The TABINDEX attribute defines the tab order for a form item.

Syntax

TABINDEX = integer
  1. integer defines the order of the item in the tab sequence.

Usage

This attribute can be used to define the order in which the form items are selected as the user "tabs" from field.

The program must defined the form tabbing order with the OPTIONS FIELD ORDER FORM instruction, or the current dialog must use the FIELD ORDER FORM option.

It can also be used to define which field must get the focus when a FOLDER page is selected.

By default, form items get a tab index according to the order in which they appear in the LAYOUT section.

Tip: TABINDEX can be set to zero in order to exclude the item from the tabbing list. The item can still get the focus with the mouse.
EDIT f001 = customer.fname, TABINDEX = 1;
EDIT f002 = customer.lname, TABINDEX = 2;
EDIT f003 = customer.comment,
     TABINDEX = 0; -- Excluded from tabbing list