//
procedure TAccountSetting
begin
//判斷是否試算平衡
adoquery
adoquery
adoquery
adoquery
if adoquery
begin
showmessage(
exit;
end;
//如果試算平衡
if application
begin
//執行儲存過程
adocommand
adocommand
//刷新數據表
adotable
adotable
adotable
adotable
//顯示帳戶啟用成功消息
showmessage(
end;
end;
//顯示初始化時的試算平衡表
procedure TAccountSetting
var
newform:Tsumaccount;
begin
//創建試算平衡窗體
newform:=Tsumaccount
newform
//在初始化時使用
newform
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/24973.html