TiModeComboBox.ItemIndex
TiModeComboBox
Sets or gets the Index of the Item currently selected in the combo box
property ItemIndex : Integer;
Description
Use ItemIndex to select a particular item or get the currently selected item
in the combo box by Index.
Note: You can also use the Value property to select or get the currently selected item by Value instead of by
Index.
Example
Delphi
iComponent.ItemIndex := 2; //Selects the third item
Value := iComponent.ItemIndex; //Gets the index of the currently selected item
C++ Builder
iComponent->ItemIndex = 2; //Selects the third item
Value = iComponent->ItemIndex; //Gets the index of the currently selected item
Contents | Index | Previous