我一直坚持将这些变量添加到 ComboBox 进行循环,我想用 Looping for 以更简单的方式调用它,但我失败了很多次,我一直在谷歌搜索,但我仍然失败,所以任何帮助将不胜感激
Public MyPass1 As String = "John"
Public MyPass2 As String = "Andrew"
Public MyPass3 As String = "Stewart"
Public MyPass4 As String = "Meiny"
Public MyPass5 As String = "Franco"
Public MyPass6 As String = "Hanks"
Public MyPass7 As String = "Buzz"
Public MyPass8 As String = "Timmy"
Public MyPass9 As String = "George"
Public MyPass10 As String = "Sanders"
Sub Putitem(ByVal MyPass)
With cmbAsk
For i As Integer = 0 To 9
Dim c As Integer
c = i + 1
Items.Add(MyPass(c)) 'The main problem is here, i want to do looping for calling it.
i = c
Next
End With
End Sub
任何帮助,将不胜感激。提前致谢。