xtpCalendarRecurrenceMonthNth works? |
Post Reply |
Author | |
mpspark
Newbie Joined: 09 January 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 30 January 2007 at 11:27pm |
I can't seem to get xtpCalendarRecurrenceMonthNth and xtpCalendarRecurrenceYearNth recurrence type working. Would someone show me some example codes? Here is what I tried:
rPattern.Options.RecurrenceType = xtpCalendarRecurrenceMonthNth rPattern.Options.MonthNthIntervalMonths = txtInterval.Text rPattern.Options.MonthNthWhichDay = WeekNumOfMonth(pStartDate.Value) 'returns week number of the month rPattern.Options.MonthNthWhichDayMask = xtpCalendarDayWednesday 'this is just for testing purpose 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. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
The following values are used for MonthNthWhichDay: 1 - First 2 - Second 3 - Third 4 - Fourth 5 - Last Here is a changed piece of code from Codejock Calendar VB Sample, frmMain, Form_Load Replace the existing one and test.
NOTE: In Version 10.4 CalendarDialogs object added to use built-in dialogs: 'Edit Event', 'Edit Recurrence', 'Reminders', 'Time Scale Properties' See Calendar VB Sample, menu -> Calendar ->Advanced Options set check "Use built-in calendar dialogs" -- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |