hi,
I have a custom class named "myoleclass" that contain a ActiveX control.
I face problem of CREATEOBJECT() during runtime.
I tried the following code but it return "Object class is invalid for this container"
myvar = CREATEOBJECT("myoleclass")
Or
object.myproperty = CREATEOBJECT("myoleclass")
Or
object.ADDOBJECT("myproperty", "myoleclass")
It work in VFP7 but not in VFP6
Any workaround?
How to acess this object without adding it to form?
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...