Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook automation restrict date search
Message
De
25/05/2016 09:45:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01636716
Message ID:
01636789
Vues:
43
>>>thanks to Tore for folder number. I now need to restrict my search in the junk folder to the past 90 days.
>>>I tried to model on my present 'unread' filter (which Tamar sent me) but the date()-90 is not a match to the SentOn property of the emails.
>>>I am clearly missing something. Any suggestions?
>>>
>>>tnks
>>>k
>>>
>>>
>>>#DEFINE olFolderJunk 23
>>>
>>>oOutlook = CREATEOBJECT("Outlook.Application")
>>>oNS = oOutlook.getnamespace("MAPI")
>>>oJunkMail = oNS.GetDefaultFolder(olFolderJunk )
>>>oMsgs = oJunkMail.Items
>>>** loUnread = oMsgs.Restrict("[Unread] = true")
>>>
>>>loRecent = oMsgs.Restrict([SentOn]>Date()-90)  && ???
>>>
>>>
>>
>>Try Sent rather than SentOn. https://msdn.microsoft.com/en-us/library/office/ff869662.aspx
>>
>>Tamar
>
>thanks for the link Tamar. Unfortunately the Sent just gives me a .T. -- good thought though. thanks for that.
>k

Sorry, I eyeballed the topic and didn't realize those were properties filters don't handle.

See if this helps: https://msdn.microsoft.com/en-us/library/office/ff866013.aspx

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform