RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.GetComponentName Method

Returns the name of the component passed as its parameter.

Pascal
function GetComponentName(Component: TComponent): string;
C++
__fastcall AnsiString GetComponentName(TComponent * Component);

Call GetComponentName to obtain the name of a component. This is the inverse of GetComponent.

Note: If the component is in the current root object, GetComponentName returns the Name property of the component itself. If the component is in another entity, GetComponentName qualifies the component name with the name of the object in which it resides.
 

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