RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesignerHook.UniqueName Method

Generates a unique name from a specified base string.

Pascal
function UniqueName(const BaseName: string): string;
C++
__fastcall AnsiString UniqueName(const AnsiString BaseName);

Call UniqueName to automatically generate a unique name for a component. Specify the base string for the name by the BaseName parameter. UniqueName appends a number to BaseName to ensure that there are no name-space conflicts. 

 

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