Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Pass Parameters to Init with CreateObject
Message
From
07/12/2006 15:15:47
 
 
To
07/12/2006 13:15:52
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01175496
Message ID:
01175856
Views:
6
Yes, you're right. It does pass parameters to the Init ... when used in VFP.

I'm not aware of where it's documented that COM doesn't support parameters to COM components. It's something I learned way back with VFP 6.0.

>You wrote: "COM does not support passing parameters to the Init method."
>
>Good morning Craig
>
>Yes, that is certainly the way it appears. I am currently writing separate lines to pass in values to class properties.
>
>BUT... the MS documentation says that CreateObject("myTest.myClass", param1, param2, etc) does pass the params to the Class's Init Event. I have unsucessfully found any docs that say otherwise.
>
>Can you point me to a document reference?
>
>Thanks
>Don Lowrey
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform