vb中如何删除combo中的数据
Fori1=0To1WithCombo10(i1).AddItem"冰".AddItem"混".AddItem"睡".AddItem"毒".AddItem"物理".Add...
For i1 = 0 To 1
With Combo10(i1)
.AddItem "冰"
.AddItem "混"
.AddItem "睡"
.AddItem "毒"
.AddItem "物理"
.AddItem "风"
.AddItem "雷"
.AddItem "水"
.AddItem "火"
.AddItem "震慑"
.ListIndex = 0
End With
Next i1
代码如上,如果combo10(0)选中某项,那么combo10(1)中就删除此项。
比如:combo10(0)中选中冰,那么combo10(1)中就没有此项
combo10(0)中选中混,那么combo10(1)中就没有此项,但是有刚才的冰 展开
With Combo10(i1)
.AddItem "冰"
.AddItem "混"
.AddItem "睡"
.AddItem "毒"
.AddItem "物理"
.AddItem "风"
.AddItem "雷"
.AddItem "水"
.AddItem "火"
.AddItem "震慑"
.ListIndex = 0
End With
Next i1
代码如上,如果combo10(0)选中某项,那么combo10(1)中就删除此项。
比如:combo10(0)中选中冰,那么combo10(1)中就没有此项
combo10(0)中选中混,那么combo10(1)中就没有此项,但是有刚才的冰 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询