设列表框的名称为List1,则下列与List1.Text中的值相同的属性值是

admin2019-04-29  25

问题 设列表框的名称为List1,则下列与List1.Text中的值相同的属性值是

选项 A、List1.ListCount
B、List1.List(List1.ListIndex)
C、List1.List(ListCount-1)
D、List1.ListIndex

答案B

解析 列表框的List属性用来列出或设置列表项的内容;ListIndex设置返回当前被选择项目的索引号;ListCount返回列表框中项目数量的数值。List1.List(List1.ListIndex)返回索引为List1.ListIndex的值,题目List1.Text返回当前被选择项目的内容,故正确答案为选项B。
转载请注明原文地址:https://kaotiyun.com/show/22Up777K
0

最新回复(0)