Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Troubles with Outlook
Message
De
22/11/1999 05:46:56
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Troubles with Outlook
Divers
Thread ID:
00293837
Message ID:
00293837
Vues:
63
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
Fil
Voir

Click here to load this message in the networking platform