Vcl.StdCtrls.TCustomComboBox.SelectItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SelectItem(const AnItem: string): Boolean;

C++

bool __fastcall SelectItem(const System::UnicodeString AnItem);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomComboBox

Description

Selects a specified item from the drop-down list.

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.

See Also