//
procedure TSumAccount
var
count
val
begin
//計算平衡表中的記錄數
count:=datasource
//統計信息
val
val
val
val
val
val
while not datasource
begin
val
val
val
val
val
val
datasource
end;
//顯示統計結果
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;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/24972.html