RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterSubComponent.FindNamedVariable Method

Returns the item from this list with a specified variable name.

Pascal
function FindNamedVariable(const AName: string): TComponent; virtual;
C++
virtual __fastcall TComponent * FindNamedVariable(const AnsiString AName);

FindNamedVariable searches the list of child items that have variable names (the VariablesInUse property) to find one with the specified name. The associated adapter component calls this method from its FindNamedField or FindNamedAction method to look up a field or action with a specified name. 

AName is a variable name. Typically, this comes from server-side script that is looking for a child of an adapter with this name. 

FindNamedVariable returns the item from the list with the specified variable name. If none of the items in the list have the name AName, FindNamedVariable returns nil (Delphi) or NULL (C++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!