Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook interface not working
Message
 
 
To
02/05/2008 09:56:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01314751
Message ID:
01314759
Views:
26
Check this message Re: How to find Outlook appointment and update/delete it Thread #669711 Message #669826 and see if you can try to adjust your code similar way.

>I have the following click event method:
>
>cid=ALLTRIM(curEMAILLINKS.EntryID)
>IF NOT EMPTY(cid)
>	WITH THISFORM
>		.oOutlook=NULL
>		.oOutlook = CREATEOBJECT("Outlook.application")
>		.oNameSpace	= .oOutlook.GetNameSpace("MAPI")
>****	           .oFolders	= .oNameSpace.Folders
>		.oItem=.oNameSpace.GetItemFromID(cid)  &&& <---error
>		WAIT WINDOW TIMEOUT 1 cid
>		.oItem.DISPLAY()
>	ENDWITH
>ELSE
>
>ENDIF
>
>
>this opens the email in outlook ONLY when I step though the code in the debaugger. witout the debugger it errors with a file not found.
>
>I even added the wait wind think it might be a timing issue.
>
>But now I am really stumped
>
>
>Peter
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform