[Pas2js] how many input fields can be created by using TTextInputWidget;

Michael Van Canneyt michael at freepascal.org
Fri Aug 28 16:34:07 CEST 2020



On Fri, 28 Aug 2020, Mgr. Janusz Chmiel wrote:

> Oh, I have chaos when I have used variables my numbered variables. I Am very
> sorry. This is making semantical problems. I will carefully rewiev The code
> for my chaos with variables. It have been my bug.

Instead of

o1: TTextInputWidget;
o2: TTextInputWidget;
o3: TTextInputWidget;

Better do a 
O : Array[1..36] of TTextInputWidget;
Ol : Array[1..36] of TLabelWidget;

Or use a dynamic array. It will simplify your code hugely.

Michael.


More information about the Pas2js mailing list