Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook interface not working
Message
From
02/05/2008 09:56:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Outlook interface not working
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01314751
Message ID:
01314751
Views:
63
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
Peter Cortiel
Next
Reply
Map
View

Click here to load this message in the networking platform