Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook - how to FIND an appointment ?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00510002
Message ID:
00512513
Views:
9
Chris,

Try this approach.


******************************************************************
create table appoint ( subject c(50))
loOutLook = CREATEOBJECT('Outlook.Application')
loNameSpace = loOutlook.GetNameSpace('Mapi')
loAppointments = loNameSpace.Folders['Personal Folders'].Folders['Calendar'].items
for i = 1 to loAppointments.count
loAppointment = loAppointments.item[i]
with loAppointment
insert into appoint values ( .subject)
*insert additional fields here.
endwith
release loAppointment
endfor
******************************************************************

The name in the folders section of the code references the name of the folder in outlook. If you do not know the name do the following.

******************************************************************
loOutLook = CREATEOBJECT('Outlook.Application')
loNameSpace = loOutlook.GetNameSpace('Mapi')
for i = 1 to loNameSpace.folder.count
?loNameSpace.folders[i].name
endfor
******************************************************************
Previous
Reply
Map
View

Click here to load this message in the networking platform