Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to accede to an instance of a COM object?
Message
From
23/01/2002 08:36:34
 
 
To
22/01/2002 07:27:07
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00608295
Message ID:
00608900
Views:
11
Add aditional Parameter to your PRG e.g.:
*The PRG code
LPARAMETERS foThis
* Call of the COM instance method e.g. foThis.MyMethod
and call it with code like the following:
*The COM Method code
DO MyUDF with This
-or- (somebody will say this is not a good practice)
create a Private variable in the method before calling the PRG UDF (user def function)
e.g.:
*The COM Method code
Private poThis
poThis = This
DO MyUDF
*The PRG code
* Call of the COM instance method e.g. poThis.MyMethod
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform