作者CuckooBoy (书仔)
看板Visual_Basic
标题[VB6 ] listindex问题
时间Tue Dec 18 23:44:29 2007
For i = 0 To 255
List1.AddItem i
Next i
If List1.ListIndex = -1 Then
List1SEL = 0
Else
List1SEL = List1.ListIndex
End If
Text1.Text=List1SEL
请问这样写为什麽.....text1无法显示List1所选到的值?
下面这样写.....就可以.....
Combo1.AddItem "a"
Combo1.AddItem "b"
If Combo1.ListIndex = -1 Then
combo1SEL = 0
Else
combo1SEL = Combo1.ListIndex
End If
text1.text=combo1sel
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.195.0.12
1F:推 BearWu:触发事件? 12/19 09:12