Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition problem
Message
De
01/01/2002 18:52:49
 
 
À
01/01/2002 11:16:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00599577
Message ID:
00599627
Vues:
17
Thanks Zlatin

I will do it the way you suggest.
I missread the help on Define Class and it looked like I could do it all in the one statement:)



>To define a class that is subclassing Outlook.Application use this:
>
>DEFINE CLASS Test AS OLEControl
>OLECLASS = "Outlook.Application"
>&&... other PEM definition
>ENDDEFINE
>
>
>To create an instance of Outlook.Application a.k.a. Outlook.Application (OLEControl) object use this:
>
>Local loOutlApp AS "Outlook.Application"
>loOutlApp = CREATEOBJECT("Outlook.Application")
>
>(if you prefer it may be PRIVATE or PUBLIC object declaration)
>Note that you may store the above locally create object variable to a Form(other object) property, in order to preserve the reference of the create object.
>
>Another approach to add an Outlook.Application instance to form (other object) is to use something like this:
>
>This.AddObject('OutlookApplication','Outlook.Application')
>
>
>HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform