RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterSubComponent.GetVariable Method

Returns a child item from this list, given its position in the list of child items with variable names.

Pascal
function GetVariable(I: Integer): TComponent;
C++
__fastcall TComponent * GetVariable(int I);

FindNamedVariable indexes into the list of child items that have variable names (the VariablesInUse property) and returns the item in the specified position. 

I is the index of the child item, where 0 is the first item that can be reference from server-side script, 1 is the second item, and so on. The GetVariableCount method returns an upper limit for this index. 

 

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