Vcl.DBCtrls.TDBLookupListBox.ExecuteAction
Delphi
function ExecuteAction(Action: TBasicAction): Boolean; override;
C++
DYNAMIC bool __fastcall ExecuteAction(System::Classes::TBasicAction* Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBLookupListBox |
Description
Performs an action directed at the DB lookup list box.
ExecuteAction is called automatically when the user invokes an action with the DB lookup list box as a target. The Action parameter specifies the action component that was invoked.
ExecuteAction first calls the inherited method, which checks whether the action component knows how to perform its function with the DB lookup list box as a target. If the action does not handle the invocation with the list box as a target, ExecuteAction checks whether this is an action that takes a dataset as a target. If so, ExecuteAction invokes the action, using the dataset associated with the DataSource property as a target.