Loop through combo box?

Loop through combo box?

Anonymous
Not applicable
280 Views
2 Replies
Message 1 of 3

Loop through combo box?

Anonymous
Not applicable
I have a combo box that has been populated already with strings using AddItem. How do I loop through these strings later in my program?
0 Likes
281 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Assume the combobox has one column or you want to get item's text from the
first column:

Dim i As Integer
Dim strItem As String
For i=0 to ComboBox1.ListCount-1
strItem=ComboBox1.List(i)
...
Next

wrote in message news:5379364@discussion.autodesk.com...
I have a combo box that has been populated already with strings using
AddItem. How do I loop through these strings later in my program?
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks,

That's what I needed
0 Likes