<?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 : How to Modify m_pRPattern.RemoveAllExceptions</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : How to Modify m_pRPattern.RemoveAllExceptions]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 12:14:11 +0000</pubDate>
  <lastBuildDate>Wed, 17 Jan 2007 19:27:32 +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=6073</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[How to Modify m_pRPattern.RemoveAllExceptions : Thank you, Serge. I&amp;#039;ve been...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19463&amp;title=how-to-modify-m-prpattern-removeallexceptions#19463</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2670">dangier</a><br /><strong>Subject:</strong> 6073<br /><strong>Posted:</strong> 17 January 2007 at 7:27pm<br /><br />Thank you, Serge. I've been looking at forms that edit events and recurrence for bits of code. And your direction helps. ]]>
   </description>
   <pubDate>Wed, 17 Jan 2007 19:27:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19463&amp;title=how-to-modify-m-prpattern-removeallexceptions#19463</guid>
  </item> 
  <item>
   <title><![CDATA[How to Modify m_pRPattern.RemoveAllExceptions : Please look at our VB Sample,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19461&amp;title=how-to-modify-m-prpattern-removeallexceptions#19461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6073<br /><strong>Posted:</strong> 17 January 2007 at 5:30pm<br /><br />Please look at our VB Sample, frmMain, Form_Load<br>&nbsp;<br>There are 2 samples how to create a recurrence<br>&nbsp;<br>1. A simple one after line <br><i>&nbsp;&nbsp;&nbsp; If bAddRecurrenceEvent Then</i><br>&nbsp;<br>2. An extended one is commented, after line <br><i>&nbsp;&nbsp;&nbsp; ' extended recurrence example:</i><br>&nbsp; Uncomment it and play :)&nbsp; <br>&nbsp;<br>These 2 peces of code are designed to help understand recurrence ideas.<br>&nbsp;<br>3. And after that you can take a look at forms which edit events and recurrence for more details. <br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Wed, 17 Jan 2007 17:30:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19461&amp;title=how-to-modify-m-prpattern-removeallexceptions#19461</guid>
  </item> 
  <item>
   <title><![CDATA[How to Modify m_pRPattern.RemoveAllExceptions : As you can probably guess, I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19441&amp;title=how-to-modify-m-prpattern-removeallexceptions#19441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2670">dangier</a><br /><strong>Subject:</strong> 6073<br /><strong>Posted:</strong> 17 January 2007 at 9:48am<br /><br /><P>As you can probably guess, I'm fairly new to VB6, but working my way through it.</P><DIV>I'm using your first solution and successfully modified the begin and end dates for an existing MasterEvent -&gt; RecurrencePattern.</DIV><P>I've been struggling with creating a copy of the changed series. Would you please give me a sample of code to get me started in the right direction? Do I use the CalendarControl.DataProvider.CreateEvent method?</P><P>The more I work through this Xtreme Calendar Control, the more impressed I am it. Thank you for all your help!</P>]]>
   </description>
   <pubDate>Wed, 17 Jan 2007 09:48:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19441&amp;title=how-to-modify-m-prpattern-removeallexceptions#19441</guid>
  </item> 
  <item>
   <title><![CDATA[How to Modify m_pRPattern.RemoveAllExceptions : Hi Serge, Thank you for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19377&amp;title=how-to-modify-m-prpattern-removeallexceptions#19377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2670">dangier</a><br /><strong>Subject:</strong> 6073<br /><strong>Posted:</strong> 15 January 2007 at 1:23pm<br /><br /><P>Hi Serge,</P><DIV></DIV>Thank you for your response. I apologize for the redundancy. I missed your earlier message due to hosting email issues.<DIV>&nbsp;</DIV><DIV>Your reply is greatly appreciated!</DIV>]]>
   </description>
   <pubDate>Mon, 15 Jan 2007 13:23:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19377&amp;title=how-to-modify-m-prpattern-removeallexceptions#19377</guid>
  </item> 
  <item>
   <title><![CDATA[How to Modify m_pRPattern.RemoveAllExceptions : Hi,The solution would be similar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19183&amp;title=how-to-modify-m-prpattern-removeallexceptions#19183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6073<br /><strong>Posted:</strong> 11 January 2007 at 8:58am<br /><br />Hi,<br><br>The solution would be similar to what I've described for you in IssueTrack could weeks earlier:<br><br>1. An easy solution.<br><br>To store previous recurrence events you have to divide existing series to 2 parts:<br>a) Old recurrence series - finished at a current date;<br>b) New recurrence series - started at current date.<br>So far there will be 2 operations:<br>a) modify the end date for existing MasterEvent-&gt;RecurrencePattern without calling RemoveAllExceptions;<br>b) create a copy of changed series (with Recurrence) starting from the current date;<br><br>2. Yet another solution.<br>Use an existing master event.<br>a. Get collection of all backward (historical) recurrence events (exception or occurrences).<br>b. Modify master event using new properties. (Commit it to data provider)<br>c. Get collection of all backward (historical) recurrence events for new series.<br>d. for each event from collection "c" add event from collection "a" as an exception.<br>&nbsp; if "c" has more events than "a" rest events from "c" add as deleted exceptions.<br>&nbsp; if "a" has more events than "c" rest events from "a" add as exceptions which are not related to any occurrence.<br>&nbsp; (Commit it to data provider)<br><br>You see that the second way is complex. And if your 'historical' events collection will grows up to 100-200... events for each master event this may slow down performance.<br><br>I recommend you way 1, it is easier. But if you need to have only one master event for each series - use way 2.<br><br>--<br>WBR,<br>Serge]]>
   </description>
   <pubDate>Thu, 11 Jan 2007 08:58:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19183&amp;title=how-to-modify-m-prpattern-removeallexceptions#19183</guid>
  </item> 
  <item>
   <title><![CDATA[How to Modify m_pRPattern.RemoveAllExceptions : I&amp;#039;m using the VB6 ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19151&amp;title=how-to-modify-m-prpattern-removeallexceptions#19151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2670">dangier</a><br /><strong>Subject:</strong> 6073<br /><strong>Posted:</strong> 10 January 2007 at 6:08pm<br /><br /><P>I'm using the VB6 ActiveX Xtreme Calendar Control. The current code behind the btnOK button of frmEditRecurrence is:</P><DIV><FONT color=#0000cc>Private Sub btnOK_Click()</FONT></DIV><DIV><FONT color=#0000cc>&nbsp;&nbsp;&nbsp; UpdatePatternFromControls<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If m_pRPattern.Exceptions.Count &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim nRes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nRes = MsgBox("This series will be updated. Is this OK?", vbOKCancel)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If nRes = vbCancel Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pRPattern.RemoveAllExceptions<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; m_pMasterEvent.UpdateRecurrence m_pRPattern</FONT></DIV><DIV><FONT color=#0000cc>&nbsp;&nbsp;&nbsp; ''=====================================================<BR>&nbsp;&nbsp;&nbsp; Unload Me<BR></FONT></DIV><DIV><FONT color=#0000cc><FONT color=#000000>I want to modify the frmEditRecurrence form so that if a user wants to edit a series, only the recurrence events from the current calendar date forward are changed (not any historical recurrences for that event).</FONT></FONT></DIV><DIV><FONT color=#0000cc><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000cc><FONT color=#000000>I know this is not an Outlook behavior, but it's a very critical one for the project I'm working on.</FONT></FONT></DIV><DIV><FONT color=#0000cc><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000cc><FONT color=#000000>Any idea how I could modify the btnOK code to store the old recurrence series and create a new recurrence series?</FONT></FONT></DIV><DIV><FONT color=#0000cc><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000cc><FONT color=#000000>Your guidance is sincerely appreciated.</FONT></DIV></FONT><DIV><FONT color=#3300cc></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 10 Jan 2007 18:08:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6073&amp;PID=19151&amp;title=how-to-modify-m-prpattern-removeallexceptions#19151</guid>
  </item> 
 </channel>
</rss>