Getting all data from all items in a VB6 listbox into a string variable
Posted on 2007-04-09
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)
The above code doesn't seem to work.