Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook calendar items
Message
From
29/12/2003 17:58:30
 
 
To
29/12/2003 17:13:04
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00862668
Message ID:
00862688
Views:
34
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform