![]() |
Exceptions |
Post Reply ![]() |
Author | |
phainge ![]() Groupie ![]() ![]() Joined: 03 July 2009 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() Posted: 07 January 2010 at 9:18am |
Has anyone managed to get exceptions working for recurring events? I've been struggling with this for 2 days now and am just about ready to give up.
In the Calendar VB6 sample supplied with the Codejock controls there is an example of how to create a recurring event with an exception - I have got this working fine in the sample application, however when I try to do the same thing in my real application it refuses to work, even though I'm creating the master and exception events in exactly the same way - the exception event simply refuses to appear in the calendar control and all I see are the normal occurrences of the recurring event.
Has anyone had any success creating exceptions?
Peter
|
|
![]() |
|
mbrogdon ![]() Groupie ![]() Joined: 22 March 2007 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Here is the routine I use to create exceptions. Maybe you will see something that helps.
The "InEvent" passed in is just a simplified object using only string and long datatypes
used to pass data between another application and VB. "ctlCal" is the caldendarcontrol.
|
|
Xtreme SuitePro ActiveX 13.2.0 - Windows XP SP3 - VB6/Ingres Openroad 2006
|
|
![]() |
|
phainge ![]() Groupie ![]() ![]() Joined: 03 July 2009 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
Hi mbrogdon,
Thanks for that. That's basically exactly what I'm already doing.
I think the only difference between your code and mine is that I add the appointments as part of the calendar control DoRetrieveDayEvents event. Basically I call the calendar control Populate method first, which then fires the DoRetrieveDayEvents event for each day in the calendar control view, which reads the events for that day from the provider (in this case Microsoft Outlook) and adds these to the calendar control, and it's during this process that the master event and its exception are added. My code matches the sample VB6 code supplied by Codejock, which also calls the Populate method first before adding the master event and its exception.
Peter
|
|
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1 Visual Basic 6.0 SP4 |
|
![]() |
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 |