<?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 : events not populating calendar control - help!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : events not populating calendar control - help!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 16:20:06 +0000</pubDate>
  <lastBuildDate>Fri, 29 May 2009 05:05:35 +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=14394</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[events not populating calendar control - help! : rewrote CalMulti_AddEvent() it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49467&amp;title=events-not-populating-calendar-control-help#49467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5179">Jaymeister</a><br /><strong>Subject:</strong> 14394<br /><strong>Posted:</strong> 29 May 2009 at 5:05am<br /><br />rewrote CalMulti_AddEvent() it works adding an event<br>renamed original to CalMulti_AddEvent_Old() the not working version<br>I don't know why one works and not the other...<br><br>Sub CalMulti_AddEvent(ByVal CtrlIndex%, ByVal CallData$)<br>&nbsp; StrSub CallData$, 1, UniqueID$<br>&nbsp; StrSub CallData$, 2, temp$: Engineer2Use&amp; = Val(Trim$(temp$))<br>&nbsp; StrSub CallData$, 3, StartYYYYMMDD$<br>&nbsp; StrSub CallData$, 4, StopYYYYMMDD$<br>&nbsp; StrSub CallData$, 5, StartHHMM$<br>&nbsp; StrSub CallData$, 6, StopHHMM$<br>&nbsp; StrSub CallData$, 7, cTitle$<br>&nbsp; StrSub CallData$, 8, Body$<br>&nbsp; <br>&nbsp; Dim pEvent As CalendarEvent<br>&nbsp; Set pEvent = frmMain.mCalendarControl(CtrlIndex%).DataProvider.CreateEvent<br>&nbsp; <br>&nbsp; With pEvent<br>&nbsp;&nbsp;&nbsp; .Subject = cTitle$<br>&nbsp;&nbsp;&nbsp; .Body = Body$<br>&nbsp;&nbsp;&nbsp; .StartTime = YYYYMMDD2Format$(StartYYYYMMDD$, "dd Mmm yyyy") + "&nbsp;&nbsp; " + Left$(StartHHMM$, 2) + ":" + Right$(StartHHMM$, 2)<br>&nbsp;&nbsp;&nbsp; .EndTime = YYYYMMDD2Format$(StopYYYYMMDD$, "dd Mmm yyyy") + "&nbsp;&nbsp; " + Left$(StopHHMM$, 2) + ":" + Right$(StopHHMM$, 2)<br>&nbsp;&nbsp;&nbsp; .AllDayEvent = False<br>&nbsp;&nbsp;&nbsp; .ScheduleID = UniqueID$<br>&nbsp; End With<br>&nbsp; <br>&nbsp; frmMain.mCalendarControl(CtrlIndex%).DataProvider.AddEvent pEvent<br>&nbsp; frmMain.mCalendarControl(CtrlIndex%).Populate<br>&nbsp; <br>&nbsp; 'MsgBox "Event count: " + Str$(frmMain.mCalendarControl(CtrlIndex%).DataProvider.GetAllEventsRaw.Count)<br>End Sub<br><br>Sub CalMulti_AddEvent_Old(ByVal CtrlIndex%, ByVal CallData$)<br>&nbsp; On Local Error GoTo 0<br>&nbsp; On Error GoTo 0<br>&nbsp; <br>&nbsp; StrSub CallData$, 1, UniqueID$<br>&nbsp; StrSub CallData$, 2, temp$: Engineer2Use&amp; = Val(Trim$(temp$))<br>&nbsp; StrSub CallData$, 3, StartYYYYMMDD$<br>&nbsp; StrSub CallData$, 4, StopYYYYMMDD$<br>&nbsp; StrSub CallData$, 5, StartHHMM$<br>&nbsp; StrSub CallData$, 6, StopHHMM$<br>&nbsp; StrSub CallData$, 7, cTitle$<br>&nbsp; StrSub CallData$, 8, Body$<br><br>&nbsp; UseExistingMethod% = False<br>&nbsp; If UseExistingMethod% Then<br>&nbsp;&nbsp;&nbsp; NewTimeObject frmMain.mCalendarControl(CtrlIndex%), UniqueID$, StartYYYYMMDD$, StopYYYYMMDD$, StartHHMM$, StopHHMM$, cTitle$, Body$, Engineer2Use&amp;, True, True<br>&nbsp; Else<br>&nbsp;&nbsp;&nbsp; Dim TimeObject As CalendarEvent<br>&nbsp;&nbsp;&nbsp; Set TimeObject = frmMain.mCalendarControl(CtrlIndex%).DataProvider.CreateEvent<br><br>&nbsp;&nbsp;&nbsp; TimeObject.AllDayEvent = False<br>&nbsp;&nbsp;&nbsp; TimeObject.Body = ""<br>&nbsp;&nbsp;&nbsp; TimeObject.BusyStatus = xtpCalendarBusyStatusBusy<br>&nbsp;&nbsp;&nbsp; TimeObject.StartTime = YYYYMMDD2Format$(StartYYYYMMDD$, "dd Mmm yyyy") + "&nbsp;&nbsp; " + Left$(StartHHMM$, 2) + ":" + Right$(StartHHMM$, 2)<br>&nbsp;&nbsp;&nbsp; TimeObject.EndTime = YYYYMMDD2Format$(StopYYYYMMDD$, "dd Mmm yyyy") + "&nbsp;&nbsp; " + Left$(StopHHMM$, 2) + ":" + Right$(StopHHMM$, 2)<br>&nbsp;&nbsp;&nbsp; TimeObject.Importance = xtpCalendarImportanceHigh<br>&nbsp;&nbsp;&nbsp; TimeObject.Location = ""<br>&nbsp;&nbsp;&nbsp; TimeObject.MeetingFlag = True<br>&nbsp;&nbsp;&nbsp; TimeObject.PrivateFlag = True<br>&nbsp;&nbsp;&nbsp; TimeObject.Reminder = False<br>&nbsp;&nbsp;&nbsp; TimeObject.ScheduleID = UniqueID$<br>&nbsp;&nbsp;&nbsp; TimeObject.Subject = cTitle$<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; OldCount% = frmMain.mCalendarControl(CtrlIndex%).DataProvider.GetAllEventsRaw.Count<br>&nbsp;&nbsp;&nbsp; frmMain.mCalendarControl(CtrlIndex%).DataProvider.AddEvent TimeObject<br>&nbsp;&nbsp;&nbsp; NewCount% = frmMain.mCalendarControl(CtrlIndex%).DataProvider.GetAllEventsRaw.Count<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If OldCount% = OldCount% Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Event not added to control #" + Trim$(Str$(CtrlIndex%)) &amp; vbCrLf &amp; vbCrLf &amp; cTitle$ &amp; vbCrLf &amp; vbCrLf &amp; Format$(TimeObject.StartTime, "Ddd Dd Mmm YYYY"), vbInformation, "Event not added to control #" + Trim$(Str$(CtrlIndex%))<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp; End If<br>End Sub<br>&nbsp;]]>
   </description>
   <pubDate>Fri, 29 May 2009 05:05:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49467&amp;title=events-not-populating-calendar-control-help#49467</guid>
  </item> 
  <item>
   <title><![CDATA[events not populating calendar control - help! : when I switch to... OpenProvider...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49413&amp;title=events-not-populating-calendar-control-help#49413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5179">Jaymeister</a><br /><strong>Subject:</strong> 14394<br /><strong>Posted:</strong> 28 May 2009 at 4:35am<br /><br />when I switch to...<br>&nbsp; OpenProvider cjCalendarData_Memory, "Provider=XML;Data Source=" &amp; App.Path &amp; "\ASM_Events.xml"<br>...original frmMain.CalendarControl using above code I can add an event and it appears<br><br>however still no events added to any of the 3 calendar controls<br><br>&nbsp;&nbsp;&nbsp; OldCount% = frmMain.mCalendarControl(CtrlIndex%).DataProvider.GetAllEventsRaw.Count<br>&nbsp;&nbsp;&nbsp; frmMain.mCalendarControl(CtrlIndex%).DataProvider.AddEvent TimeObject<br>&nbsp;&nbsp;&nbsp; NewCount% = frmMain.mCalendarControl(CtrlIndex%).DataProvider.GetAllEventsRaw.Count<br><br>OldCount% = 0 and NewCount% = 0 <br><br>I suspect I'm doing some N00b mistake, any help would be greatly appreciated]]>
   </description>
   <pubDate>Thu, 28 May 2009 04:35:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49413&amp;title=events-not-populating-calendar-control-help#49413</guid>
  </item> 
  <item>
   <title><![CDATA[events not populating calendar control - help! : I&amp;#039;m basically using CodeJock&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49411&amp;title=events-not-populating-calendar-control-help#49411</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5179">Jaymeister</a><br /><strong>Subject:</strong> 14394<br /><strong>Posted:</strong> 28 May 2009 at 3:37am<br /><br />I'm basically using CodeJock's supplied sample VB6 calendar app<br>to its original frmMain.CalendarControl using above code I can add an event and it appears.<br><br>Im now after placing 3 CalendarControls&nbsp; <br>&nbsp;frmMain.mCalendarControl(0)<br>&nbsp;frmMain.mCalendarControl(1) and<br>&nbsp;frmMain.mCalendarControl(2)<br><br>I modded original to...<br>&nbsp;frmMain.CalendarControl.SetDataProvider "Provider=Custom;DSN=ODBC_Engineers" <br>and events can still be added to original control using code like above...<br>&nbsp;frmMain.CalendarControl.DataProvider.AddEvent TimeObject<br>...the original CodeJock vb6 app has no "Do_" subs or functions, so I assumed the 3 new controls would be the same.<br><br>however I cannot add events to the 3 new controls...<br><br>I suspect the issue lies in my manual population of events, these events will exist in your controls memory only<br>(as I have changed...<br>&nbsp; frmMain.CalendarControl.SetDataProvider "Provider=Custom;DSN=XyzXyz"<br> ...and added events still populate original control, without a valid DSN= )<br><br>Thanks for any help in advance,<br>Jason &nbsp;              ]]>
   </description>
   <pubDate>Thu, 28 May 2009 03:37:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49411&amp;title=events-not-populating-calendar-control-help#49411</guid>
  </item> 
  <item>
   <title><![CDATA[events not populating calendar control - help! : events not populating calendar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49384&amp;title=events-not-populating-calendar-control-help#49384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5179">Jaymeister</a><br /><strong>Subject:</strong> 14394<br /><strong>Posted:</strong> 27 May 2009 at 5:57am<br /><br />events not populating calendar controls - help!<br>no errors - but no events ???<br><br>I'm using CalMulti_AddEvent() to add events to 1 of 3 controls<br>parameter 1 CtrlIndex% is 0, 1 or 2 (the calendar control index)<br>parameter 2 is event data<br><br>Sub CalMulti_AddEvent(ByVal CtrlIndex%, ByVal CallData$)<br>&nbsp; On Local Error GoTo 0<br>&nbsp; On Error GoTo 0<br>&nbsp; <br>&nbsp; Dim TimeObject As CalendarEvent<br>&nbsp; Set TimeObject = frmMain.mCalendarControl(CtrlIndex%).DataProvider.CreateEvent<br><br>&nbsp; StrSub CallData$, 1, UniqueID$<br>&nbsp; StrSub CallData$, 3, StartYYYYMMDD$<br>&nbsp; StrSub CallData$, 4, StopYYYYMMDD$<br>&nbsp; StrSub CallData$, 5, StartHHMM$<br>&nbsp; StrSub CallData$, 6, StopHHMM$<br>&nbsp; StrSub CallData$, 7, cTitle$<br>&nbsp; StrSub CallData$, 8, Body$<br><br>&nbsp; TimeObject.AllDayEvent = False<br>&nbsp; TimeObject.Body = ""<br>&nbsp; TimeObject.BusyStatus = xtpCalendarBusyStatusBusy<br>&nbsp; TimeObject.StartTime = YYYYMMDD2Format$(StartYYYYMMDD$, "dd Mmm yyyy") + "&nbsp;&nbsp; " + Left$(StartHHMM$, 2) + ":" + Right$(StartHHMM$, 2)<br>&nbsp; TimeObject.EndTime = YYYYMMDD2Format$(StopYYYYMMDD$, "dd Mmm yyyy") + "&nbsp;&nbsp; " + Left$(StopHHMM$, 2) + ":" + Right$(StopHHMM$, 2)<br>&nbsp; TimeObject.Importance = xtpCalendarImportanceHigh<br>&nbsp; TimeObject.Location = ""<br>&nbsp; TimeObject.MeetingFlag = True<br>&nbsp; TimeObject.PrivateFlag = True<br>&nbsp; TimeObject.Reminder = False<br>&nbsp; TimeObject.ScheduleID = UniqueID$<br>&nbsp; TimeObject.Subject = cTitle$<br>&nbsp; <br>&nbsp; MsgBox cTitle$ &amp; vbCrLf &amp; vbCrLf &amp; Format$(TimeObject.StartTime, "Ddd Dd Mmm YYYY"), vbInformation, Trim$(Str$(CtrlIndex%))<br>&nbsp; frmMain.mCalendarControl(CtrlIndex%).DataProvider.AddEvent TimeObject<br>End Sub<br>&nbsp;<br>Sub CalMulti_Refresh_Cals()<br>&nbsp; On Local Error GoTo NoMoreCals<br>&nbsp; <br>&nbsp; Index% = -1<br>&nbsp; Do<br>&nbsp;&nbsp;&nbsp; Index% = Index% + 1<br>&nbsp;&nbsp;&nbsp; frmMain.mCalendarControl(Index%).Populate<br>&nbsp; Loop<br><br>NoMoreCals:<br>End Sub<br><br><br>]]>
   </description>
   <pubDate>Wed, 27 May 2009 05:57:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14394&amp;PID=49384&amp;title=events-not-populating-calendar-control-help#49384</guid>
  </item> 
 </channel>
</rss>