ItemIndex
Specifies the index of the selected item.property ItemIndex: Integer read GetItemIndex write SetItemIndex default -1;Read ItemIndex to determine which item is selected. The first item in the list has index 0, the second item has index 1, and so on. If no item is selected, the value of ItemIndex is -1.
Example:
Store selected item of ComboBox into variable.
procedure TForm1.Test;
var
S: string;
begin
S := NxComboBox61.Items[NxComboBox61.ItemIndex];
end;Example:
Select last item in ComboBox:
NxComboBox61.ItemIndex := NxComboBox61.Count - 1;User may change ItemIndex by selecting item from drop-down, or by using arrow keys.