TiModeComboBox.Value
TiModeComboBox
Gets the value of the current Mode Combo Box item.
property Value : Integer;
Description
Use Value to get or set the current Combo Box item value. Getting the value
will get the value associated with the current item selected in the combo box
list. Setting the value will set the item associated with the specified value.
For example, if you have specified an item with text "Sample Item" and have
associated a value of "100" to that item, the Value property will be 100 if the
"Sample Item" is selected in the Mode Combo Box. Also, if you set the Value
property to 100, then the selected item in the combo box will change to "Sample
Item".
The control will accept duplicate values for items in the list, however this
is discouraged unless you need to do this. If duplicate values are found in the
list while setting the Value property, the first item found with the matching
value will be selected.
For most uses, simply use the default values for each item, incrementing by
one with the first item starting at 0.
Note: You can also use the ItemIndex property to select or get the currently selected item by Index instead of by
Value.
Example
Delphi
iComponent.Value := 1;
C++ Builder
iComponent->Value = 1;
Contents | Index | Previous | Next