int num,num1=0
string name
connect;
ddlb_2.reset()
declare doctor_cursor cursor for select doctor_name from scott.doctor;
select count(*) into :num from scott.doctor;
open doctor_cursor;
do while num1<>num
fetch doctor_cursor into :name;
ddlb_2.additem(name);
num1++;
loop
close doctor_cursor;
disconnect;
if ddlb_2.text<>"" then
sle_8.text=string(1)
sle_6.text=string(2)
end if
前面一段,我就是想用dropdownlistbox显示一个表里的字段,很好,刷新显示,但是奇怪的是,在下拉栏里选中的字符串,在dropdownlistbox里面闪了一下就没了,我用第二段测了下 有字符存在 说明取出来了...但是为什么就闪了一下就没了呢
哪犯错了 很急 花了挺长时间也没解决 谢谢帮忙
------解决方案--------------------
哦,呵呵,估计是你代码写的位置有问题,你是不是写在changed事件中了啊,考虑写在其他位置吧