<?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 : xtpCalendarRecurrenceMonthNth works?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : xtpCalendarRecurrenceMonthNth works?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 07:08:32 +0000</pubDate>
  <lastBuildDate>Wed, 31 Jan 2007 05:53:15 +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=6277</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[xtpCalendarRecurrenceMonthNth works? : Hi,The following values are used...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6277&amp;PID=19936&amp;title=xtpcalendarrecurrencemonthnth-works#19936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6277<br /><strong>Posted:</strong> 31 January 2007 at 5:53am<br /><br />Hi,<br><br>The following values are used for MonthNthWhichDay:<br>&nbsp;<br>1 - First<br>2 - Second<br>3 - Third<br>4 - Fourth<br>5 - Last<br>&nbsp;<br>Here is a changed piece of code from Codejock Calendar&nbsp; VB Sample, frmMain, Form_Load<br>&nbsp;<br>Replace the existing one and test.<br>&nbsp;<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; Dim bAddRecurrenceEvent As Boolean<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; bAddRecurrenceEvent = True<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If bAddRecurrenceEvent Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim NewEvent As CalendarEvent, Recurrence As CalendarRecurrencePattern<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set NewEvent = CalendarControl.DataProvider.CreateEvent<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.Subject = "RecEv"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.Location = "1"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.Body = "."<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.ReminderSoundFile = ".."<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Recurrence = NewEvent.CreateRecurrence<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.Label = 5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.StartTime = #3:00:00 PM#<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.DurationMinutes = 90<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.StartDate = Now - 2 '#4/11/2005#<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.EndMethod = xtpCalendarPatternEndAfterOccurrences<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.EndAfterOccurrences = 10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.Options.RecurrenceType = xtpCalendarRecurrenceMonthNth<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.Options.MonthNthIntervalMonths = 3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.Options.MonthNthWhichDay = 5 ' WeekNumOfMonth(pStartDate.Value)&nbsp;&nbsp; 'returns week number of the month<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurrence.Options.MonthNthWhichDayMask = xtpCalendarDayWednesday&nbsp; 'this is just for testing purpose<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.UpdateRecurrence Recurrence<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.DataProvider.AddEvent NewEvent<br>&nbsp;&nbsp;&nbsp; End If<br></pre></td></tr></table><br><br>NOTE: In Version 10.4 CalendarDialogs object added to use built-in dialogs: 'Edit Event', 'Edit Recurrence', 'Reminders', 'Time Scale Properties'<br>&nbsp;<br>See Calendar VB Sample, menu -&gt; Calendar -&gt;Advanced Options<br>set check "Use built-in calendar dialogs"<br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Wed, 31 Jan 2007 05:53:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6277&amp;PID=19936&amp;title=xtpcalendarrecurrencemonthnth-works#19936</guid>
  </item> 
  <item>
   <title><![CDATA[xtpCalendarRecurrenceMonthNth works? : I can&amp;#039;t seem to get xtpCalendarRecurrenceMonthNth...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6277&amp;PID=19901&amp;title=xtpcalendarrecurrencemonthnth-works#19901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2665">mpspark</a><br /><strong>Subject:</strong> 6277<br /><strong>Posted:</strong> 30 January 2007 at 11:27pm<br /><br />I can't seem to get xtpCalendarRecurrenceMonthNth and xtpCalendarRecurrenceYearNth recurrence type working. Would someone show me some example codes? Here is what I tried:<br><br>rPattern.Options.RecurrenceType = xtpCalendarRecurrenceMonthNth<br>rPattern.Options.MonthNthIntervalMonths = txtInterval.Text<br>rPattern.Options.MonthNthWhichDay = WeekNumOfMonth(pStartDate.Value)&nbsp;&nbsp; 'returns week number of the month<br>rPattern.Options.MonthNthWhichDayMask = xtpCalendarDayWednesday&nbsp; 'this is just for testing purpose<br><br>What am I doing wrong? I can see this code enters a event/recurrence record in the database, but does not show up in the scheduler/calendar. The same goes for xtpCalendarRecurrenceYearNth. <br><br>]]>
   </description>
   <pubDate>Tue, 30 Jan 2007 23:27:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6277&amp;PID=19901&amp;title=xtpcalendarrecurrencemonthnth-works#19901</guid>
  </item> 
 </channel>
</rss>