2,496
社区成员
发帖
与我相关
我的任务
分享
procedure TDataModule1.sxcombox(biaom,zhim:string; com:TComboBox);
var //统一刷新数据的过程
i:integer;
begin
with DataModule1.adoquery2 do
begin
close;
sql.text:='select * from '+trim(biaom);
open;
com.items.clear;
while not eof do
begin
com.items.add(fieldByname(zhim).asstring);
next;
end;
end;
end;