[Lazarus] Invalid component names

Gabor Boros gaborboros at yahoo.com
Mon Apr 27 14:57:29 CEST 2009


Yes, I know. But I just want to show an example.

Gabor

Hans-Peter Diettrich írta:
> Gabor Boros schrieb:
> 
>> I always use the variable's name to component name.
>>
>> var
>>     MyLabel15:TLabel;
>>
>> begin
>>     MyLabel15:=TLabel.Create(Self);
>>     MyLabel15.Name:='MyLabel15';
>> end;
> 
> Exactly this code will cause an exception, when the procedure is called 
> more than once - as I need it to create multiple floating controls.
> 
> DoDi




More information about the Lazarus mailing list