RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.GetObject Method

Returns the persistent object with the name passed as a parameter.

Pascal
function GetObject(const Name: string): TPersistent;
C++
__fastcall TPersistent * GetObject(const AnsiString Name);

Call GetObject to access a persistent object given its name. This is useful when working with components that include constituent objects that are not components, such as the TStatusPanel objects that TStatusBar uses. 

To obtain the name of a persistent object, use the GetObjectName method. 

 

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