TiModeComboBox.GetItemValue
TiModeComboBox
Used to get the value of a Combo Box list item by index.
function GetItemValue(Index : Integer) : Integer;
Description
Use the GetItemValuefunction to get the value of a particular Mode Combo Box
list by index value.
Note: the index value is the index of the item and not it's associated value
property. When items are added to the Mode Combo Box control by using the AddItem procedure, the index of the item is 1 less than the ItemCount property. The Value property is an arbitrary number that you can assign to
the Item to distinguish it from other Items. This is useful where you want the
Items to have varying values that don't necessarily start at 0 and increment by
one (e.g. the first item is Value = 10, second item is Value = 50, third item
is value = 75, and so on).
Example
Delphi
Value := iComponent.GetItemValue(10); //Gets the value of the 11th item
C++ Builder
Value = iComponent->GetItemValue(100); //Gets the value of the 11th item
Contents | Index | Previous | Next