Search code examples
delphicomboboxdelphi-7

delphi comboBox


how does one get the picked value of a combo box from delphi 7

lets say it has items, how does one know which row (item) was picked?


Solution

  • You find the selected item with:

    combobox.ItemIndex; // -1 if none
    

    You can get the value using

    combobox.Items[combobox.ItemIndex]