CalendarEvent Object |
Post Reply |
Author | |
Rod001
Newbie Joined: 29 September 2006 Location: United States Status: Offline Points: 25 |
Post Options
Thanks(0)
Posted: 20 February 2007 at 12:14pm |
Hi,
How do I replace or change the subject, location, starttime, etc. properties that have already been displayed in a calendar view?
Thanks.
|
|
Rod001
Newbie Joined: 29 September 2006 Location: United States Status: Offline Points: 25 |
Post Options
Thanks(0)
|
I found a solution that works. Does this look Ok?
Private Sub ReplaceEventsLabel()
Dim pEvent As CalendarEvent Set Events = CalendarControl.DataProvider.GetAllEventsRaw() end Sub Rod |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Looks good.
But one note - recurrence exceptions will not be updated. If you need this -- you have to check whether event is a recurrence master, get its pattern and iterate on exceptions, change them and call ChangeEvent in the same style as for other events. But firstly update master event, then exceprions. Other way - use PrePopulate event. This allow you to update events dynamically before they are placed on the screen. In this case events in Data provider are not changed and only visible events are updated. -- WBR, Serge |
|
Rod001
Newbie Joined: 29 September 2006 Location: United States Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Serge,
Thank you!!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |