EhLib
ContentsIndexHome
PreviousUpNext
TCustomDBComboBoxEh.ItemIndex Property

Indicates which item in the drop-down list is selected.

Pascal
property ItemIndex: Integer;

Read ItemIndex to determine which item in the list is the selected value in the combo box. This value appears in the edit box portion of the combo box. 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. 

 

Write to ItemIndex to programmatically select an item from the list by passing in the index value.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!