C
cqy8
Unregistered / Unconfirmed
GUEST, unregistred user!
以下两个事件里的内容就FORM名字不同,能否把他们以FORM名字为变量,用一个函数或过程来处理?请各位大侠帮忙,谢谢!!!
procedure TMainForm1.FixedAssetsClickClick(Sender: TObject);
begin
FixedAssetsForm:=TFixedAssetsForm.Create(Application);
FixedAssetsForm.ShowModal ;
end;
procedure TMainForm1.ClientInfoClickClick(Sender: TObject);
begin
ClientInfoForm:=TClientInfoForm.Create(Application);
ClientInfoForm.ShowModal ;
end;
procedure TMainForm1.FixedAssetsClickClick(Sender: TObject);
begin
FixedAssetsForm:=TFixedAssetsForm.Create(Application);
FixedAssetsForm.ShowModal ;
end;
procedure TMainForm1.ClientInfoClickClick(Sender: TObject);
begin
ClientInfoForm:=TClientInfoForm.Create(Application);
ClientInfoForm.ShowModal ;
end;