RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomComboBox.SelectItem Method

Selects a specified item from the drop-down list.

Pascal
function SelectItem(const AnItem: string): Boolean;
C++
__fastcall Boolean SelectItem(const AnsiString AnItem);

SelectItem selects the first item in the drop-down list that matches the string specified by AnItem. If the list does not contain a string that matches AnItem, SelectItem does nothing. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!