System.Classes.IsUniqueGlobalComponentName
Delphi
function IsUniqueGlobalComponentName(const Name: string): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsUniqueGlobalComponentName(const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
Indicates whether a proposed component name is unambiguous.
IsUniqueGlobalComponentName returns True if the name specified by Name is not currently used by any component on any form, data module, or other top-level container component. IsUniqueGlobalComponentName returns False if another component is already using Name (in which case references to the component should be qualified by the root object's name).
IsUniqueGlobalComponentName only searches for root components (for example TForm objects or TDataModule objects). IsUniqueGlobalComponentName does not search recursively on all the components.