[an error occurred while processing this directive]
|
TButton *p[100];
void __fastcall TForm1::Button1Click(TObject *Sender)
{
static int btnCnt = 0;
p[btnCnt] = new TButton (this);
p[btnCnt]->SetBounds(btnCnt *20 , btnCnt *20 , 20, 20);
p[btnCnt]->Caption = "123";
p[btnCnt]->Parent = this;
btnCnt++;
}