Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting outlook appointment
Message
 
 
À
18/04/2012 09:25:50
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01541954
Message ID:
01541959
Vues:
50
Try
fromdate = "'03.05.2012 00:00 AM'"
todate  = "'03.06.2012 00:00 AM'"
currentAppointment = oItems.Find("[START] >= " + fromdate + " and [START] < " + todate)
UT allows the signs between < pre> tags

>
>I hope somebody can help me with my problem. I try to find all appointments on a specific date (day). I want to use the find method in Outlook.
>
>Tried :
>
>#Define olFolderCalendar 9
>set date to german
>set  century on
>oOutlook = Createobject('outlook.application')
>oNameSpace = oOutlook.getnamespace('MAPI')
>oDefaultFolder=oNameSpace.GetDefaultFolder(olFolderCalendar)
>oItems = oDefaultFolder.items
>fromdate = "03.05.2012 00:00:00"
>todate  = "03.05.2012 23:59:00"
>currentAppointment = oItems.Find("[START] > " + "'" + fromdate + "'" + " and [START] < " + "'" + todate + "'")
>Sorry but replace gt with greater than and lt with lower than. Universalthread does not allow the signs.
>
>
>I have tried every date/time format but nothing works. currentAppointment is always NULL
>
>Any help is appreciated :-)
> Thanks
>
>Marcus
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform