System.Classes.FindGlobalComponent
Delphi
function FindGlobalComponent(const Name: string): TComponent;
C++
extern DELPHI_PACKAGE TComponent* __fastcall FindGlobalComponent(const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
Returns a top-level container component.
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++).