<?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 : ChangeEvent</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : ChangeEvent]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 04:26:03 +0000</pubDate>
  <lastBuildDate>Sun, 10 Sep 2006 17:09:22 +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=4946</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[ChangeEvent : Thanks for the reply. I will give...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4946&amp;PID=15592&amp;title=changeevent#15592</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 4946<br /><strong>Posted:</strong> 10 September 2006 at 5:09pm<br /><br />Thanks for the reply. I will give this a try.]]>
   </description>
   <pubDate>Sun, 10 Sep 2006 17:09:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4946&amp;PID=15592&amp;title=changeevent#15592</guid>
  </item> 
  <item>
   <title><![CDATA[ChangeEvent : Hi,Actually this is quite often...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4946&amp;PID=15423&amp;title=changeevent#15423</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4946<br /><strong>Posted:</strong> 01 September 2006 at 4:04pm<br /><br />Hi,<br><br>Actually this is quite often case - when from some event handler you call method which fires this event again and you get a loop and stack overflow.<br>&nbsp;<br>The idea to avoid this is to have a global semaphore of running this method, as following:<br><table width="99%"><tr><td><pre class="BBcode"><br>Dim g_bChangeEventRunning as Boolean<br>&nbsp;<br>sub Form_Load()<br>&nbsp;&nbsp;&nbsp; g_bChangeEventRunning = False<br>end sub<br>&nbsp;<br>sub wndCalendar_EventChanged(......)<br>&nbsp;&nbsp;&nbsp; OnErrOr GoTo mExit:<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; if g_bChangeEventRunning then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit sub<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; g_bChangeEventRunning = True<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; '------------------<br>&nbsp;&nbsp;&nbsp; ' place your code here<br>&nbsp;&nbsp;&nbsp; '------------------<br><br>mExit:<br>&nbsp;&nbsp;&nbsp; g_bChangeEventRunning = False 'ensure that you reset this to false before exit this sub<br>&nbsp;<br>end sub<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Fri, 01 Sep 2006 16:04:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4946&amp;PID=15423&amp;title=changeevent#15423</guid>
  </item> 
  <item>
   <title><![CDATA[ChangeEvent : Hello,  I need to update a customProperty...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4946&amp;PID=15401&amp;title=changeevent#15401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 4946<br /><strong>Posted:</strong> 01 September 2006 at 2:49am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I need to update a customProperty in an event if a user drags an event on the calendar.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>This fires the EventChange,&nbsp; after I update the CustomProperty with the new data, I do the DataProvider.ChangeEvent pEvent method.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>If MsgBox("Are you sure you want to Re-Schedule this Appointment?", vbCritical + vbYesNoCancel) = vbYes Then<BR>&nbsp; Dim pEvent As CalendarEvent<BR>&nbsp; Set pEvent = calCalendar.DataProvider.GetEvent(EventID)<BR>&nbsp; <BR>&nbsp; Dim sSql As String<BR>&nbsp; Dim rsUpdate As New adodb.Recordset<BR>&nbsp; <BR>&nbsp; Dim retvar<BR>&nbsp; Dim iApptID As Integer<BR>&nbsp; Dim lngClientID As Long<BR>&nbsp; <BR>&nbsp;<FONT color=#00ff00> </FONT><FONT color=#00cc00>' pEvent Is Nothing for recurrence Ocurrence and Exception.<BR>&nbsp; ' See CalendarControl_PatternChanged for recurrence events changes.<BR></FONT>&nbsp; If Not pEvent Is Nothing Then<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; iApptID = Val(NZ(pEvent.CustomProperties("apptid"), 0))<BR>&nbsp;&nbsp;&nbsp; lngClientID = Val(NZ(pEvent.CustomProperties("clientid"), 0))<BR>&nbsp;&nbsp;&nbsp; retvar = goADO.ExecuteSQL("UPDATE tblDataClientApptDate SET Reschedule = True Where ApptID = " &amp; iApptID)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <FONT color=#00cc00>' Now I need to build a new tblDataClientApptDate item for the rescheduled appointment.<BR>&nbsp;&nbsp;&nbsp; ' I need the new ApptID for the new Item, and I need to put the new apptID into the Customer Property of the event.<BR></FONT>&nbsp;&nbsp;&nbsp; iApptID = NZ(CLng(NZ(VLookup("Max(&#091;ApptID&#093;) AS NextID", GetDBName(), "tblDataClientApptDate"), 0)) + 1)<BR>&nbsp;&nbsp;&nbsp; pEvent.CustomProperties("ApptID") = iApptID<BR>&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>calCalendar.DataProvider.ChangeEvent pEvent</FONT></DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>This puts me into a loop.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Am&nbsp;I&nbsp;doing this at the wrong place or is there an excepted way to get out of the loop.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 01 Sep 2006 02:49:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4946&amp;PID=15401&amp;title=changeevent#15401</guid>
  </item> 
 </channel>
</rss>