[Lazarus] Invalid component names

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Apr 27 11:14:54 CEST 2009


Mattias Gaertner schrieb:

>> So the remaining question is: How to assign unique names to
>> dynamically created components? Does there exist an immediately
>> usable method or function?
>>
>> Empty names seem to be harmless, but every attempt to assign an 
>> non-empty and already used name to a component results in an
>> exception.
>>
>> What's the scope (list of names...), within which every component
>> must have an unique name?
> 
> Have you looked at TComponent.SetName?

Thanks, that answers the latter question.

Nonetheless there should exist a method, at least in the form designer, 
for creating unique names. Where is it?

DoDi




More information about the Lazarus mailing list