I want to add the following combobox items into the array called "Numbers". Below is what I have so far. How do I add each combobox item into the array? Thanks.
number.Items.Add("One")
number.Items.Add("Two")
number.Items.Add("Three")
number.Items.Add("Four")
number.Items.Add("Five")
number.Items.Add("Six")
number.Items.Add("Seven")
Dim Numbers(6) As String
Dim count As Integer
For count= 0 To 6
Numbers(count) = number.Text
Next count
you're very nearly there..
Dim Numbers(6) As String
Dim count As Integer
For count = 0 To 6
Numbers(count) = Number.Items(count).ToString
Next count
End Sub
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments