<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CreateEventEx &amp; multischedule</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CreateEventEx &amp; multischedule]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 17:31:29 +0000</pubDate>
  <lastBuildDate>Wed, 10 Apr 2013 03:48:36 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=21577</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CreateEventEx &amp; multischedule : Hi, I am evaluating Codejock Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21577&amp;PID=70795&amp;title=createeventex-multischedule#70795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8030">ma_cip</a><br /><strong>Subject:</strong> 21577<br /><strong>Posted:</strong> 10 April 2013 at 3:48am<br /><br />Hi, I am evaluating Codejock Xtreme Calendar ActiveX in a MsAccess Application.<br><br>I need to load a Custom Data Provider (Recordset filtered).<br><br>Using CreateEventEx, (as suggested in http://www.codejock.com/support/articles/com/calendar/cp_3.asp) it works fine.<br><br>Anyway I'm not able to load events grouped in a multischedule layout (Users/Events)<br><br>This is the code used.<br>***<br>...<br>...<br>Dim thisEvent As CalendarEvent<br>dim MyCalendar As new CalendarControl<br>Dim g_DataResourcesMan&nbsp; As New CalendarResourcesManager<br>Dim pData As CalendarDataProvider<br>Dim pSchedules As CalendarSchedules<br>Dim pRCDesc As CalendarResourceDescription<br><br>Set MyCalendar = Me.CalendarControl0.Object<br>Set pData = MyCalendar.DataProvider<br>Set pSchedules = pData.Schedules<br>&nbsp; <br>pSchedules.AddNewSchedule ("xxx")<br>pSchedules.item(0).ID = 1<br>pSchedules.AddNewSchedule ("yyy")<br>pSchedules.item(1).ID = 2<br>If pSchedules Is Nothing Or pSchedules.count = 0 Then exit Sub<br>&nbsp; &nbsp;<br>Dim Btsched As Byte<br>For Btsched  = 0 To pSchedules.count - 1<br>g_DataResourcesMan.AddResource pSchedules(Btsched).name, True<br>Next i<br><br>Set thisEV = MyCalendar.DataProvider.CreateEventEx(99)<br>thisEV.StartTime = CDate(Now)<br>thisEV.body= "Event1" <br>....<br>....<br>thisEV.ScheduleID = 2<br>pData.AddEvent thisEV<br><br>Set thisEV = MyCalendar.DataProvider.CreateEventEx(100)<br>thisEV.StartTime = CDate(Now+1)<br>thisEV.body= "Event2"<br>....<br>....<br>thisEV.ScheduleID = 1<br>pData.AddEvent thisEV<br>...<br>...<br>MyCalendar.DataProvider.AddEvent thisEV<br><br>For i = 0 To g_DataResourcesMan.ResourcesCount - 1<br>&nbsp;&nbsp; &nbsp;Set pRCDesc = g_DataResourcesMan.Resource(i)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pRCDesc.Resource.SetDataProvider pData, false<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pRCDesc.Resource.ScheduleIDs.Add pSchedules(i).ID<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pRCDesc.GenerateName = True<br>Next i<br><br>g_DataResourcesMan.ApplyToCalendar MyCalendar<br><br>***<br><br>And the calendar appears blank, while not using multischedule option, it's correttly pupulated.<br><br>Has anyone any suggestion/trick ?<br>I need to solve this problem before the purchase of the control.<br><br>Thanks.]]>
   </description>
   <pubDate>Wed, 10 Apr 2013 03:48:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21577&amp;PID=70795&amp;title=createeventex-multischedule#70795</guid>
  </item> 
 </channel>
</rss>