//
procedure Tmaterials
begin
//查詢數據
adoquery
adoquery
adoquery
adoquery
adoquery
//將查詢得到的數據通過clone命令復制到adotable中去
adotable
end;
//
procedure Tmaterials
begin
if key=#
bitbtn
end;
procedure Tmaterials
begin
if key=#
bitbtn
end;
procedure Tmaterials
begin
if key=#
bitbtn
end;
//
procedure Tmaterials
begin
//在dbgrid中插入一行新的數據
datasource
showmessage(
//為數據文本框設置默認值
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbedit
dbcombobox
dbcombobox
//物料主文件中存儲的是類別的拼音
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/24986.html