I have a DataCombo Box on a VB6 form that I’m trying to populate from a procedure that returns a string. It works fine in Access but I get a error “Method or data member not found” in VB6.
I changed my approach and tried the AddItem of the standard ComboBox, I was able to get the first item from my procedure. Now I need help with a loop to read the rest. The data from my procedure returns a string in this format
Dim sTemp As String
Dim arData() As String
Dim i As Long
sTemp = "Data1xxx xxx ; Data2 xxxx xxx ; Data3 xxxx xxx ;Data4xxxx xx xxx;"
arData = Split(sTemp, ";")
For i = LBound(arData) To UBound(arData)
Call Combo1.AddItem(arData(i))
Next
Of course, you will have to change the sTemp part so that it uses the data from your procedure.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.