Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook calendar items
Message
De
29/12/2003 17:58:30
 
 
À
29/12/2003 17:13:04
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00862668
Message ID:
00862688
Vues:
31
>All,
>
> I need a sample of how to loop through items in an Outlook calendar.
>
>Please help

e.g.
oOutlook=NewObject("outlook.application")
oMAPI=oOutlook.GetNameSpace("MAPI")
oCal=oMAPI.GetDefaultFolder(9) 
For Each oItem in oCal.Items
  ? oItem.Subject, oItem.Start, oItem.End
Next
you can use the Object Browser in vfp7+ to view enum values for GetDefaultFolder(). All folders work pretty much the same -- you can loop through the Items collection and Items have many of the same properties, although each folder has a default type of item that it holds.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform