J
jzrenxiaoyan
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在单击button1时,listbox1下动态生成10个checkbox,如何实现啊?
帮我看看哪里错了啊?多谢!!!!!!!!!1
procedure TForm1.Button1Click(Sender: TObject);
var
i:integer;
acheckbox:array of Tcheckbox;
begin
for i:=0 to 10 do
begin
acheckbox:=Tcheckbox.Create(self);
listbox1.InsertControl(acheckbox);
acheckbox.Name:='s'+inttostr(i);
end;
end;
帮我看看哪里错了啊?多谢!!!!!!!!!1
procedure TForm1.Button1Click(Sender: TObject);
var
i:integer;
acheckbox:array of Tcheckbox;
begin
for i:=0 to 10 do
begin
acheckbox:=Tcheckbox.Create(self);
listbox1.InsertControl(acheckbox);
acheckbox.Name:='s'+inttostr(i);
end;
end;