Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Automation Newbie
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00061275
Message ID:
00061360
Views:
43
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform