RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCombo.GetItemIndex Method

Returns the value of the ItemIndex property.

Pascal
function GetItemIndex: Integer; override;
C++
virtual __fastcall int GetItemIndex();

GetItemIndex is the read implementation of the ItemIndex property. It returns the index of the selected item in the drop-down list. 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. 

 

ItemIndex

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!