[Lazarus] Invalid component names

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Apr 27 10:42:39 CEST 2009


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