L
lyplay2
Unregistered / Unconfirmed
GUEST, unregistred user!
//作用,将表中的字段名(不是值)全部写入DBCOMBOBOX1。
var
ii:integer;
begin
adotable1.Open;
for ii:=0 to adotable1.recordcount-1 do
begin
dbcombobox1.items.add(adotable1.fieldbyname(i).FieldName);
adotable1.Next;
end;
var
ii:integer;
begin
adotable1.Open;
for ii:=0 to adotable1.recordcount-1 do
begin
dbcombobox1.items.add(adotable1.fieldbyname(i).FieldName);
adotable1.Next;
end;