>I've created a simple test class, got it registered ole public and sucessfully run via ox=createobject('testole1.to1'). Now I need to pass a parameter from the initiating application. I tried adding lparameter parm1 to the init procedure of the class. Then load with ox=createobject('testole1.to1','Hello'). No parameter is passed. I must have barked up the wrong tree, would someone please show me the correct way.
>
>Many Thanks,
>Books at work and tired of searching the help.
Michael,
Once you have the object instantiated, you have access to all the properties and methods of the object just like you would any other VFP control. If you need to pass a parameter, you are probably going to call a method in the server, and can simply say...
ox.mymethod(parm1)
HTH
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown