Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Troubles with Outlook
Message
De
22/11/1999 10:40:55
 
 
À
22/11/1999 05:46:56
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00293837
Message ID:
00293912
Vues:
26
Hi Paul,

Yes, it's a collection but one that Fox can't seem to figure out. You have to FOR..NEXT with ItemCount. I've run into that before. One thing I am curious about, GetDefaultFolder(INBOX). I am assuming that you are using the constant int value for inbox there and not just INBOX?



>
>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
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform