Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class definition problem
Message
From
01/01/2002 18:54:14
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00599577
Message ID:
00599628
Views:
13
Thanks Sergey
Will do:)


>>This generates a syntax error when I am defining my class
>>
>>ADD OBJECT olApp As "outlook.application"

>
>You cannot add automation server as an object to the class. Anyway, it's important only for visual controls to be added to the container this way. Also not all controls can be added to all containers.
>
>>This does not
>>
>>public olApp As "outlook.application"

>
>It doesn't create object but declares variable olApp of type "outlook.application" for Intellisense to show it's methods and properties when you type 'olApp.'.
>
>You can add property, say oOutlook, to your class and in the Init of the class create instance of outlook server.
* Init
>This.oOutlook  = = CREATEOBJECT("Outlook.Application")
After that you can reference it the same way as if it was created with ADD OBJECT.
Previous
Reply
Map
View

Click here to load this message in the networking platform