Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class definition problem
Message
From
01/01/2002 18:52:49
 
 
To
01/01/2002 11:16:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00599577
Message ID:
00599627
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform