W
wl821205
Unregistered / Unconfirmed
GUEST, unregistred user!
begin
combobox2.items.clear;
adoquery2.first;
while not adoquery2.eof do
begin
combobox2.items.add(adoquery2.fieldbyname(combobox1.text).asstring;
adoquery2.next;
end;
上面的代码,我放在combobox1的onchange事件中,就出现了一件怪事,就是:当我combobox1选择在'性别'这一值时,combobox2中出现了很多的男,女,请问如何解决
combobox2.items.clear;
adoquery2.first;
while not adoquery2.eof do
begin
combobox2.items.add(adoquery2.fieldbyname(combobox1.text).asstring;
adoquery2.next;
end;
上面的代码,我放在combobox1的onchange事件中,就出现了一件怪事,就是:当我combobox1选择在'性别'这一值时,combobox2中出现了很多的男,女,请问如何解决