HKComputer
asked on
Getting all data from all items in a VB6 listbox into a string variable
I'm using VB6. How do I get the data from all items in a listbox, whether they are selected or not? I have multi-select set to Extended and I have columns set at 0. This listbox is not bound to anything. I populate it with code using the AddItem method.
For i = 0 to Me.lstStartup.ListCount
strStartup = strStartup & Me.lstStartup.ListIndex(i)
Next i
The above code doesn't seem to work.
For i = 0 to Me.lstStartup.ListCount
strStartup = strStartup & Me.lstStartup.ListIndex(i)
Next i
The above code doesn't seem to work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.