S stery Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-12 #1 我是一个delphi的初学者,我在做一个小程序时必须判断程序的 combobox中是否有值存在,请各位高手指导。
N Nose Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-12 #3 如果ComboBox的Style=csSimple or =csDropDown 可判断 ComboBox.Text是否为空字符串 否则判断comboBox.Items.Count>0
S sea713 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-12 #4 完全可以用: if (length(combobox1.text)>0 )and (combobox.items.count>0) then dosomeing
L liuchuanbo Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-12 #6 ??(当前无值) if combobox1.text<>'' then ...
Z zhou0523 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-13 #7 if (trim(combobox1.text)<>'') and (combobox1.items.count<>0) then
S stery Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-13 #8 谢谢你们的回答!我已经受益非浅了,我知道怎么做了,谢谢!