Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Marking Outlook messages as read
Message
De
14/12/2000 18:44:32
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00453665
Message ID:
00453684
Vues:
35
Hi Fabio,

I use the following code and it works fine.
#DEFINE inbox 6

LOCAL loOutLook, loNameSpace, loInbox, nMessageCount, nLoop

loOutLook     = CREATEOBJECT("Outlook.Application")
loNameSpace   = loOutLook.GetNameSpace("MAPI")
loInbox	      = loNameSpace.GetDefaultFolder(inbox)
nMessageCount = loInbox.Items.Count

FOR nLoop = 1 TO nMessageCount
    loInbox.Items[nLoop].Unread = .F.
ENDFOR

RELEASE loOutLook
Hope This Helps,
Gavin...

>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform