Y
yankk
Unregistered / Unconfirmed
GUEST, unregistred user!
with ADOQuery1 do
begin
close;
sql.Clear;
sql.Add('select * from deparment');
open;
end;
while not EOF do
begin
ComboBox1.Items.Add(ADOQuery1.FieldByName('Dname').asString);
next;
end;
comboBox1.ItemIndex:=0;
我想从deparment表中取出Dname字段加到comboBox1中,然后显示第一项,但
出现i/o error 6的错误,怎莫会事?
begin
close;
sql.Clear;
sql.Add('select * from deparment');
open;
end;
while not EOF do
begin
ComboBox1.Items.Add(ADOQuery1.FieldByName('Dname').asString);
next;
end;
comboBox1.ItemIndex:=0;
我想从deparment表中取出Dname字段加到comboBox1中,然后显示第一项,但
出现i/o error 6的错误,怎莫会事?