Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Creating Recurrence Event Exceptions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Creating Recurrence Event Exceptions

 Post Reply Post Reply
Author
Message
Pmosh View Drop Down
Newbie
Newbie
Avatar

Joined: 15 March 2012
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pmosh Quote  Post ReplyReply Direct Link To This Post Topic: Creating Recurrence Event Exceptions
    Posted: 21 August 2017 at 3:49pm
I can't seem to figure out how to load custom recurrence exceptions into the calendar. The end result is that I get both the exception and the master event displayed. My code is something like this:

MasterEvent = ole_calendar.DataProvider.CreateEvent()
** Set master event properties **
RecurrencePattern = MasterEvent.CreateRecurrence()
** Set recurrence properties **
ole_calendar.DataProvider.AddEvent(MasterEvent)

ExceptionEvent = ole_calendar.DataProvider.CreateEvent()
ExceptionEvent.MakeAsRException()
** Set exception event properties **
RecurrencePattern.SetException(iOleEvent)
MasterEvent.UpdateRecurrence(RecurrencePattern)
ole_calendar.DataProvider.ChangeEvent(MasterEvent)

Please help. Using version 15.0.2

Pmosh               
Back to Top
Pmosh View Drop Down
Newbie
Newbie
Avatar

Joined: 15 March 2012
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pmosh Quote  Post ReplyReply Direct Link To This Post Posted: 21 August 2017 at 3:52pm
Please note iOleEvent is actually ExceptionEvent. This is meant to be pseudo code, not actual code.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.