RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterSubComponent.FindVariableContainer Method

Returns the Web module that contains a specified item from this list.

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

FindVariableContainer searches the list of child items that have variable names (the VariablesInUse property) to find one with the specified name. It then returns the Web module that contains the component it located. 

AName is the name of the action or field to locate. 

FindVariableContainer returns the Web module that containse the specified item. If there is no item in the list with the name AName, FindVariableContainer returns nil (Delphi) or NULL (C++). If FindVariableContainer includes an item with the specified name, but is unable to determine what Web module contains that item, FindVariableContainer raises an EAdapterException exception. 

 

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