Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook
Message
From
15/02/1999 06:47:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Outlook
Miscellaneous
Thread ID:
00187622
Message ID:
00187622
Views:
63
Hi,
I am developing an application which automate MS Outlook. There are some problem occur , and I unable to solve it after tries.

Form.Init
#include office97.h
*Create an instance of Outlook to allow access fuunction from MS Outlook
oOutlook=CREATEOBJECT("outlook.application")
oMAPI=oOutlook.getnamespace("MAPI")
objFolder=oMAPI.getdefaultfolder(olFolderInbox)

Button.Click Event

objFolder.Display
OR
oExplorer = objFolder.GetExplorer
oExplorer.display

The error of "objFolder is not an object" will occur for 1st time running of my program or after I close VFP application and restart VFP. After the error occurs, I cancel it and retry it will be OK.
It occurs only when the "1st time"...

Anybody have any ideas t solve it?
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Reply
Map
View

Click here to load this message in the networking platform