Index

[property icon] Index

Returns the index of the currently selected item

Read-only Runtime-only Integer property

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box , Tree


[property icon] Index

Returns the index of the currently selected item

Read-only Runtime-only OBJECT reference property

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box

Introduced in KCML version 6.00


[property icon] Index

Returns the index of the selected menu item

Read-only Runtime-only Integer property

Applies to: MenuItem

Introduced in KCML version 6.20


[property icon] Index

Returns the index of the currently selected tab page

Read-only Runtime-only Boolean property

Applies to: TabbedItem

Introduced in KCML version 6.00


[property icon] Index

Returns the index of the currently selected item

Read-only Runtime-only Integer property

Applies to: ComboBox , Grid , KCMLEdit

Introduced in KCML version 6.00


[property icon] Index

Returns the index of the currently selected item in the drop down portion of the control

OBJECT reference property

Applies to: ComboBox , Grid , KCMLEdit , Tree


[property icon] Index

Index value of this listbox item

Integer property

Applies to: ListItem , TreeItem

Introduced in KCML version 6.60


[property icon] Index

Index value of graph item

Read-only Integer property

Applies to: GraphItem

Introduced in KCML version 6.90


>Index

Index

The Index property is is a read-only integer property whose value will be the index number of the currently selected item in a listbox, tree, menu or tab page on a tab control. Index numbers are assigned by the control when an entry is added to it. They count from 1. If nothing is selected then the value will be zero.

Note: The index is assigned as items are added. It does not neccesarily equate to the position the items are displayed in. Sorting the list or deleting items will cause the index values not to match thier visible positions.

The SetSelection() method is used to change the selected item in a list.

In a multi-select list box the value of the property will be zero and the GetSelection() method should be used instead to discover which entries are selected.

On tabs the page indexes count from 1.

See also

ComboBox methods, properties and events. GraphItem methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events. ListItem methods, properties and events. MenuItem methods, properties and events. TabbedItem methods, properties and events. Tree methods, properties and events. TreeItem methods, properties and events.