Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Troubles with Outlook
Hi All,
Does anyone know why the following gives an error message:
loInboxItems cannot be enumerated
#DEFINE INBOX 6
loOutLook = CREATE( "Outlook.Application" )
loNameSpace = loOutLook.GetNameSpace( "MAPI" )
loInboxItems = loNameSpace.GetDefaultFolder( INBOX ).Items
FOR EACH loInboxItem IN loInboxItems
*** do some thing here
NEXT loInboxItem
I've got round it by using a for next loop rather than a for each. My understanding is however, loInboxItems is a collection and can therefore be interrogated in this way.
Any thoughts?
TIA
Paul
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement