用for循环:a=text1.textfor i = 1 to listbox1.count fun=listbox1.list(i) if fun(a)=条件 then 满足条件后执行内容 exit for end ifnext i