[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 354

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.