S
sweidong
Unregistered / Unconfirmed
GUEST, unregistred user!
动态建立组件,第一次loadfromfile成功,第二次loadfromfile出错,为什么!谢谢!
procedure TForm1.Button1Click(Sender: TObject);
var
myexcell:Tmygrid;
begin
myexcell:=Texcell.Create(self);
self.InsertControl(myexcell);
myexcell.LoadFromFile('c:/tre1.bb');
end;
procedure TForm1.Button2Click(Sender: TObject);
var
myexcell:Tmygrid;
begin
myexcell:=Texcell.Create(self);
self.InsertControl(myexcell);
myexcell.LoadFromFile('c:/tre2.bb');
end;
procedure TForm1.Button1Click(Sender: TObject);
var
myexcell:Tmygrid;
begin
myexcell:=Texcell.Create(self);
self.InsertControl(myexcell);
myexcell.LoadFromFile('c:/tre1.bb');
end;
procedure TForm1.Button2Click(Sender: TObject);
var
myexcell:Tmygrid;
begin
myexcell:=Texcell.Create(self);
self.InsertControl(myexcell);
myexcell.LoadFromFile('c:/tre2.bb');
end;