Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook interface not working
Message
De
02/05/2008 09:56:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Outlook interface not working
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01314751
Message ID:
01314751
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform