vb中 combo1.listindex 和 combo1.list()有什么区别,各代表什么啊
答案:2 悬赏:10
解决时间 2021-03-21 07:41
- 提问者网友:月葬花瑰
- 2021-03-21 03:47
vb中 combo1.listindex 和 combo1.list()有什么区别,各代表什么啊
最佳答案
- 二级知识专家网友:滚刀废物浮浪人
- 2021-03-21 04:00
ListIndex 是 Index (索引), 代表当前选择的条目.
List() 是 List (列表), 是一个代表列表条目的数组.
比如列表:
Harry
Ron
Hermione
则
List(0) = "Harry"
List(1) = "Ron"
List(2) = "Hermione"
我没有选择时, ListIndex = -1.
当我选了 Harry 时, ListIndex = 0
List() 是 List (列表), 是一个代表列表条目的数组.
比如列表:
Harry
Ron
Hermione
则
List(0) = "Harry"
List(1) = "Ron"
List(2) = "Hermione"
我没有选择时, ListIndex = -1.
当我选了 Harry 时, ListIndex = 0
全部回答
- 1楼网友:啵啵桃汀
- 2021-03-21 04:19
listindex 是第几项的下标,list()是指第几项的内容。
private sub combo1_click()
print combo1.listindex
print combo1.list(combo1.listindex)
end sub
private sub form_load()
combo1.additem "a"
combo1.additem "b"
end sub
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |