单选题
能够将组合框Combo1中最后一个数据项删除的语句为( )。
A、
Combo1.RemoveItem Combo1.ListCount
B、
Combo1.RemoveItem Combo1.ListCount-1
C、
Combo1.RemoveItem Combo1.ListIndex
D、
Combo1.RemoveItem Combo1.ListIndex-1
【正确答案】
B
【答案解析】
解析:组合框的RemoveItem方法与列表框删除指定项目的方法相同,格式为:RemoveItem(索引值),而列表中的项目索引值从0开始,因此最后一项的索引值为ListCount-1。
提交答案
关闭