Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Marking Outlook messages as read
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Marking Outlook messages as read
Miscellaneous
Thread ID:
00453665
Message ID:
00453665
Views:
67
Hi,

I am trying to mark my Outlook messages as read. I am using the "Unread" property from the "Item" object, but it is not working. is there another method to do that? I am using the following code:
oNamespace = oOutlook.GetNamespace("MAPI")

oFolders = oNamespace.Folders()

FOR EACH oMAPIFolder IN oFolders

  oMAPIFolders = oMAPIFolder.Folders()
  FOR EACH oFolder IN oMAPIFolders
    oItens = oFolder.items
    FOR EACH oItem IN oItens
      oItem.UnRead = .F.
    NEXT
  NEXT

NEXT
Thanks!
-----
Fabio Vazquez
http://www.fabiovazquez.com
Next
Reply
Map
View

Click here to load this message in the networking platform