Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook object only works when Debug invoked
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841740
Message ID:
00842102
Views:
27
Yuri,

When I insert this code into my method, I get the error: "ActiveWindow does not evaluate to an object".

Here is the code:


With This
.oOutlook = Createobject( 'Outlook.Application' )
If Type( 'Thisform.oOutLook' ) = 'O' And Not Isnull( .oOutlook )
.oNameSpace = .oOutlook.GetNameSpace( 'MAPI' )
.oOutlook.ActiveWindow.WindowState = 2 &&normal, 0 - maximized
If Type( 'Thisform.oNameSpace' ) = 'O' And Not Isnull( .oNameSpace )
llRetVal = .T.
Endif
Else
llRetVal = .F.
Endif



Any ideas?

Thanks,

-Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform