On Tue, 16 Jan 2007 11:56:33 +0100
Bogusław Brandys <[EMAIL PROTECTED]> wrote:

> Sam Washkansky wrote:
> > 
> > Hi guys,
> > Here is some extra info about the IsUniqueGlobalComponentName
> > method it was taken from the Delphi 7 help file.
> > 
> > 
> > "Indicates whether a proposed component name is unambiguous.
> > Unit
> > Classes
> > 
> > Category
> > streaming utilities
> > 
> > Delphi syntax:
> > function IsUniqueGlobalComponentName(const Name: string): Boolean;
> > 
> > C++ syntax:
> > extern PACKAGE bool __fastcall (const AnsiString Name);
> > 
> > Description
> > 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."
> > 
> > -- 
> > Regards
> > 
> > Sam Washkansky
> > Tel:+27+823738257
> > email:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> 
> Strange.It is now used in tiOPF function
> tiGetUniqueComponentName(const ANameStub: string): string;
> When it was added ? I had no problems compiling tiOPF 2 under fpc
> lately. Anyway,blind guess :  it could be implemented using recursive
> scan on TComponent.Name for all children starting from TApplication.
> Any other method ?

Nope.
Maybe also check the forms of 'Screen' and the IDE components.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to