Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubles with Outlook
Message
From
22/11/1999 05:46:56
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Troubles with Outlook
Miscellaneous
Thread ID:
00293837
Message ID:
00293837
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform