<?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 : Calendar Deleting an event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Calendar Deleting an event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 21:23:39 +0000</pubDate>
  <lastBuildDate>Sun, 12 Oct 2008 17:20:27 +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=12347</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[Calendar Deleting an event : bump ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12347&amp;PID=41915&amp;title=calendar-deleting-an-event#41915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 12347<br /><strong>Posted:</strong> 12 October 2008 at 5:20pm<br /><br />bump]]>
   </description>
   <pubDate>Sun, 12 Oct 2008 17:20:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12347&amp;PID=41915&amp;title=calendar-deleting-an-event#41915</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Deleting an event : Ahh! - Had sort of the same problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12347&amp;PID=41911&amp;title=calendar-deleting-an-event#41911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4622">afy65</a><br /><strong>Subject:</strong> 12347<br /><strong>Posted:</strong> 12 October 2008 at 11:17am<br /><br />Ahh! - Had sort of the same problem as you - was checking some custom properties for conflicts and if found cancel the drag/drop, tell the user of the conflict, and then return the event to is original position. <DIV>&nbsp;</DIV><DIV>There maybe an&nbsp;easier way of doing this but I could find no documentation anywhere - Anyway</DIV><DIV>&nbsp;</DIV><DIV>Declared a temp event variable at the top of the module.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">Dim TempEvent As CalendarEvent</pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>In the calCalendarEvents_BeforeEditOperation event I added the following:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">If (OpParams.Operation = xtpCalendarEO_DragMove) And (TempEvent Is Nothing) Then</DIV><DIV>&nbsp; Set TempEvent = OpParams.DraggingEvent<BR>End If</pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>In the calCalendarEvents_EventChanged event I added the following:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;</DIV><DIV>Private Sub calCalendarEvents_EventChanged(ByVal EventID As Long)<BR>&nbsp;&nbsp;&nbsp; 'declare the local variables here<BR>&nbsp;&nbsp;&nbsp; Dim locEventInfo As CalendarEvent<BR>&nbsp;&nbsp;&nbsp; Dim locModifiedEvent As CalendarEvent<BR>&nbsp;&nbsp;&nbsp; Dim locEventID As Integer<BR>&nbsp;&nbsp;&nbsp; Dim locStartTime As String<BR>&nbsp;&nbsp;&nbsp; Dim locEndTime As String<BR>&nbsp;&nbsp;&nbsp; Dim locAllDay As Boolean<BR>&nbsp;&nbsp;&nbsp; Dim locPersonsName As String<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 'catch error and pass to the handler<BR>&nbsp;&nbsp;&nbsp; On Error GoTo errorHandler<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set locEventInfo = calCalendarEvents.DataProvider.GetEvent(EventID)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set locModifiedEvent = locEventInfo<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locEventID = locEventInfo.id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locStartTime = locEventInfo.StartTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locEndTime = locEventInfo.endTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locAllDay = locEventInfo.AllDayEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locPersonsName = locEventInfo.Subject<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'check to see if the event conflicts with any other events<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not (checkForConflict(locEventID, locStartTime, locEndTime, locAllDay, locPersonsName)) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locModifiedEvent.StartTime = TempEvent.StartTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locModifiedEvent.endTime = TempEvent.endTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locModifiedEvent.AllDayEvent = TempEvent.AllDayEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locModifiedEvent.BusyStatus = TempEvent.BusyStatus<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calCalendarEvents.DataProvider.ChangeEvent locModifiedEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Appointment conflicts with another appointment on your calendar.&nbsp;&nbsp; ", vbCritical + vbOKOnly, " Conflict...", "", ZERO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'reset the tempEvent holder<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set TempEvent = Nothing<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'all went well so exit sub here<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub</DIV><DIV>'error handler<BR>errorHandler:<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Hope this helps - should be fairly easy to modify the code so that the user can cancel an event via a prompt instead of a conflict.&nbsp; If you need more help then drop me a line. ;-)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 12 Oct 2008 11:17:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12347&amp;PID=41911&amp;title=calendar-deleting-an-event#41911</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Deleting an event : I&amp;#039;m using the Calendar in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12347&amp;PID=41687&amp;title=calendar-deleting-an-event#41687</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 12347<br /><strong>Posted:</strong> 06 October 2008 at 5:44pm<br /><br />I'm using the Calendar in a VB6 app. <DIV>&nbsp;</DIV><DIV>I want to be able to get a notice when an event is deleted and possibly cancel it. There is no Cancel parameter in the EventDeletedEx event. How can this be done? Is BeforeEditOperation the way to go? The problem with the BeforeEditOperation, is that on deleting an event, there is NO reference to the event being deleted... Also, this event seems to occur before the user select to delete "the series" or "just this occurrence" so it is kind of useless for recurring events.</DIV><DIV>&nbsp;</DIV><DIV>Also, I'm experiencing a strange behaviour. If the event is NOT recurring, the event still exist in the database while in the EventDeletedEx event. However, if the event has a recurrence and the user selects to delete all recurrences, the event has already been deleted by the time this event is raised!!! I have extra fields in the Event table used for synchronizing some other data and when the event has recurrences, well I can't get those field values as&nbsp;the record&nbsp;no longer exists.</DIV><DIV>&nbsp;</DIV><DIV>This seems like a bug to me.</DIV>]]>
   </description>
   <pubDate>Mon, 06 Oct 2008 17:44:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12347&amp;PID=41687&amp;title=calendar-deleting-an-event#41687</guid>
  </item> 
 </channel>
</rss>