RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.GetObjectName Method

Returns the name of the object passed as its parameter.

Pascal
function GetObjectName(Instance: TPersistent): string;
C++
__fastcall AnsiString GetObjectName(TPersistent * Instance);

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

 

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