RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupListBox.ExecuteAction Method

Performs an action directed at the DB lookup list box.

Pascal
function ExecuteAction(Action: TBasicAction): Boolean; override;
C++
virtual __fastcall Boolean ExecuteAction(TBasicAction Action);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!