[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomComboBox.SelectItem

Selects the item with the given text.

Declaration

Source position: stdctrls.pp line 344

protected function TCustomComboBox.SelectItem(

  const AnItem: string

):Boolean;

Arguments

AnItem

  

The text to find in Items.

Function result

True when a matching item was found and selected.

Description

When a matching item was found, invokes the OnClick and OnSelect handlers.

See also

OnClick

OnSelect

  

Handler invoked when an item is selected.