RAD Studio VCL Reference
Classes.FindGlobalComponent Function

Returns a top-level container component.

function FindGlobalComponent(const Name: string): TComponent;
TComponent * FindGlobalComponent(const AnsiString Name);

FindGlobalComponent is used by the component streaming system to implement form linking. When a component property refers to a component on another form, data module, or other top-level container component, the streaming system calls FindGlobalComponent to locate the root object in the form linking reference (e.g. Form1 in Form1.Edit1 (Delphi) or Form1->Edit1 (C++)). If the object cannot be found, FindGlobalComponent returns nil (Delphi) or NULL (C++). 


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