//
procedure TMainProduce
begin
datasource
//將插入
bitbtn
bitbtn
bitbtn
bitbtn
bitbtn
bitbtn
bitbtn
//關閉保存和取消按鈕的使能
bitbtn
bitbtn
//將兩個浏覽按鈕使能關閉
bitbtn
bitbtn
//恢復dbgrid的選取功能
dbgrid
//恢復dbedit的只讀屬性
dbedit
dbedit
dbedit
dbedit
dbedit
dbmemo
dbmemo
//刷新數據
adoquery
adoquery
end;
//
procedure TMainProduce
begin
if application
datasource
end;
procedure TMainProduce
begin
//設置列的寬度
dbgrid
dbgrid
dbgrid
dbgrid
dbgrid
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/24910.html