Hello there,
i need to create some(possible 2) checkboxes:
TCheckBox *aCb = new TCheckBox(this);
aCb->Parent = this;
aCb->Left = 20;
aCb->Top = 120;
TCheckBox *aCb1 = new TCheckBox(this);
aCb1->Parent = this;
aCb1->Left = 40;
aCb1->Top = 120;
But the problem is i don't know,how much checkboxes will be created,
possible X.
I do not shure, is it possible to create dynamic array of CheckBoxes?
The following code isn't correct:
int X=16;
TCheckBox[X] *aCb = new[X] TCheckBox(this);
for(int i=0;i<X;i++)
aCb[i] = new TCheckBox(this);
So, is it possible to create array of TCheckBox?
Thank you.