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"
>
>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