//顯示統計結果
stringgrid
stringgrid
stringgrid
stringgrid
stringgrid
stringgrid
stringgrid
if (val
begin
stringgrid
stringgrid
end
else
stringgrid
end;
//
//
implementation
{$R *
uses sumaccountform;
procedure TAccountSetting
var Action: TCloseAction);
begin
action:=cafree;
end;
//
procedure TAccountSetting
Field: TField);
begin
//設置帳簿初始化表列寬
dbgrid
dbgrid
dbgrid
dbgrid
dbgrid
dbgrid
end;
procedure TAccountSetting
begin
//設置系統參數表列寬
dbgrid
dbgrid
dbgrid
end;
//
procedure TAccountSetting
begin
//執行儲存過程
adocommand
if application
MB_OKCANCEL)=IDOK then
adocommand
//刷新數據表
adotable
adotable
adotable
adotable
end;
//
procedure TAccountSetting
begin
//判斷是否試算平衡
adoquery
adoquery
adoquery
adoquery
if adoquery
begin
showmessage(
exit;
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25051.html