单选题
窗体上有一个名称为Combol的组合框,为了引用Combol中最后一个列表项,应使用的表达式是
A、
Combol.List(ListCount)
B、
Combol.List(Combol.ListCount-1)
C、
Combol.List(ListCount-l)
D、
Combol.List(Combo1.ListCount)
【正确答案】
B
【答案解析】
解析:列表框的ListIndex属性用于返回或设置控件中当前选择项目的索引(下标),设计时不可用。当ListIndex的值设置为-1时,表示未选定项目,第一项的索引值为0,最后一项的索引值为ListCotmt-1。
提交答案
关闭