Index
Index
Returns the index of the currently selected item
Read-only Runtime-only Integer property
Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box , Tree
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
Index
Returns the index of the selected menu item
Read-only Runtime-only Integer property
Applies to: MenuItem
Introduced in KCML version 6.20
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
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
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
Index
Index value of this listbox item
Integer property
Applies to: ListItem , TreeItem
Introduced in KCML version 6.60
Index
Index value of graph item
Read-only Integer property
Applies to: GraphItem
Introduced in KCML version 6.90
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.