para:Ttable;
function FindForm(caption:string):bool;
procedure setpara();
end;
var
main: Tmain;
para:Ttable;
implementation
{$R *
uses SecSettingForm
DetailAccountForm
//
function Tmain
var
i:integer;
begin
for i:=
begin
// 通過對窗體標題判斷窗體是否存在
if main
begin
//如果窗體已存在
SendMessage(mdichildren[i]
mdichildren[i]
mdichildren[i]
mdichildren[i]
result:=true;
break;
end
else
//如窗體不存在
result:=false;
end
end;
//
procedure Tmain
var
i:integer;
begin
adoquery
adoquery
i:=
while not adoquery
begin
//保存系統參數
para[i]:=adoquery
i:=i+
adoquery
end;
end;
//
procedure Tmain
var
newform:TSecSetting;
begin
if findForm(
begin
//若窗體不存在
newform:=Tsecsetting
newform
end;
end;
//
procedure Tmain
var
newform:TaccountSetting;
begin
if findForm(
begin
//若窗體不存在
newform:=TaccountSetting
newform
end;
end;
//
procedure Tmain
var
newform:TDocuInput;
begin
if findForm(
begin
//若窗體不存在
newform:=Tdocuinput
newform
end;
end;
//
procedure Tmain
var
newform:Ttotalaccount;
begin
if findForm(
begin
//若窗體不存在
newform:=Ttotalaccount
newform
end;
end;
//
procedure Tmain
var
newform:Tdetailaccount;
begin
if findForm(
begin
//若窗體不存在
newform:=Tdetailaccount
newform
end;
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25046.html