Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.280 TabIndex Property

Description:

Defines the order in which focus moves from control to control when using the tab or arrow keys.

Used in control(s):

CheckBox

ComboBox

CommandButton

Custom

DriveList

Edit

FileList

FolderList

Frame

GroupBox

Label

ListBox

ListView

OptionButton

Scrollbar

Slider

StaticText

Tab

Table

TextBox

Toolbar

TreeView

Value:

The value is an integer greater than zero.

When the tab key is pressed focus moves between controls that can receive focus and have TabStop set to True. The focus moves from one control to the control with the next highest TabIndex value.

Back Tab (Shift + Tab) works in the reverse order.

If TabGroup properties are defined focus can be moved, within tab groups, by the arrow keys, following the TabIndex order.

Tab groups can be particularly useful for sets of option buttons.

Although TabIndex can be set for the GroupBox, StaticText and Toolbar controls, which cannot receive focus at execution time, they are skipped when the focus is being moved by the tab key.

Default value:

Assigned by PowerCOBOL using the first unassigned number.

COBOL picture:

S9(9) COMP-5

OLE data type:

VT_I4

Design time access:

Set and reference.

Execution time access:

Reference only.

Backward compatibility attribute:

None.