J
jman168
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Btn_AddClick(Sender: TObject);
var Tabsheet:TTabSheet;
i:integer;
begin
for i:=1 to 15 do
begin
Tabsheet:=TTabsheet.Create(self);
Tabsheet.PageControl:=PageControl1;
Tabsheet.Name:='Tabsheet'+IntToStr(i);
Tabsheet.Caption:='Jman建'+IntToStr(i);
end;
end;
procedure TForm1.Btn_FreeClick(Sender: TObject);
var i:integer;
begin
for i:=0 to 14 do
pageControl1.Pages.Free ;
end;
end.
释放中出错 为什么 先谢了,.学习中
var Tabsheet:TTabSheet;
i:integer;
begin
for i:=1 to 15 do
begin
Tabsheet:=TTabsheet.Create(self);
Tabsheet.PageControl:=PageControl1;
Tabsheet.Name:='Tabsheet'+IntToStr(i);
Tabsheet.Caption:='Jman建'+IntToStr(i);
end;
end;
procedure TForm1.Btn_FreeClick(Sender: TObject);
var i:integer;
begin
for i:=0 to 14 do
pageControl1.Pages.Free ;
end;
end.
释放中出错 为什么 先谢了,.学习中