Hello, I have a particular OCX that I want to control under vb6, the structure of the OCX is as follows:
Nameofheocx.AssignValue (var as String, val as String)
And the way I use it in vb.NET is as follows
That works under vb.NET, but in vb6 it gives out sintax error, I believe because vb6 does not accept two strings in the OCX call, other methods of the OCX that only use one string, work OK in vb6, like the following:Code:Tele2Ctrl.AssignValue("name of variable", "text")
The above works both in vb6 an in vb.NET.Code:Tele2Ctrl.LoadLogosAndProfiles ("c:\alphapro\Profiles.XML")
So, the problem in vb6 appears when I try to put two strings separated with a comma to be passed to the OCX.
Any Idea how can I pass two strings to my ocx in vb6 like I do in vb.NET
Thanks for your help.




Reply With Quote