Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read Attachments from Outlook Express Mail
Message
From
09/11/2000 04:31:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Read Attachments from Outlook Express Mail
Miscellaneous
Thread ID:
00439564
Message ID:
00439564
Views:
56
Hi everybody,

I use the MSMAPI activeX to read attachments from Inbox messages:

object.AttachmentCount
(Returns the number of attachments in the message)

then I set the following property:
object.AttachmentIndex
(Sets the currently indexed attachment - its value can range from zero to object.AttachmentCount)

then I read the attachment file from:
object.AttachmentName



The problem is that when the Mapi Client is Outlook Express (or Netscape) the property object.AttachmentCount allways returns zero, although I can still set the object.AttachmentIndex property to the existing attachments and read the respective files.

The only way to find how many attachments the message contains is by trying to set the AttachmentIndex property and catch the error (that fires when that index is beyond the number of attachments in the message).

Does anybody know of a cleaner way to do this ?
I don't want to code my ONERROR routine to catch an error based on its message text.

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform