Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to accede to an instance of a COM object?
Message
De
23/01/2002 08:36:34
 
 
À
22/01/2002 07:27:07
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00608295
Message ID:
00608900
Vues:
10
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!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform