EControl Form Designer Pro
TzCustomFormDesigner.GetComponent Method

Returns the component with the name passed as a parameter.

function GetComponent(const Name: string): TComponent;

Call GetComponent to access a component given its name. If the component is not in the current root object, the Name parameter should include the name of the entity in which it resides. For example, to obtain a reference to a component in a data module named 'DataModule2', use a line such as 


 TheComponent := Designer.GetComponent('DataModule2.Button1');
Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
What do you think about this topic? Send feedback!