Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Compile errors in tutorial (Read 6185 times)
donaldkelley
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: May 22nd, 2007
Compile errors in tutorial
May 22nd, 2007 at 2:30pm
Print Post  
I have downloaded Planner.NET trial version and am working thru the tutorials as evaluation.  In tutorial 2 the following code is specified.
Recurrence rec = new Recurrence();

rec.Pattern = RecurrencePattern.Weekly;
rec.DaysOfWeek = DaysOfWeek.Monday | DaysOfWeek.Wednesday;
rec.Weeks = 2;
rec.StartDate = new DateTime(2006, 1, 10);
rec.StartHour = 14;
rec.StartMinute = 0;
rec.EndHour = 16;
rec.EndMinute = 30;
rec.RecurrenceEnd = RecurrenceEnd.Never;

The lines with rec.StartHour, rec.StartMinute, rec.EndHour, rec.EndMinute give compile errors - properties do not exist

Please help


app.Recurrence = rec;

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Compile errors in tutorial
Reply #1 - May 22nd, 2007 at 2:40pm
Print Post  
The StartHour, StartMinute, EndHour and EndMinute properties have been removed from Recurrence. Now the recurrence uses the start and end time of the associated master item instead. This was done to enable recurring items with arbitrary length and spanning more than one day.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
donaldkelley
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: May 22nd, 2007
Re: Compile errors in tutorial
Reply #2 - May 22nd, 2007 at 4:02pm
Print Post  
thanks Stoyan
  
Back to top
 
IP Logged
 
bytesighs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Sep 22nd, 2008
Re: Compile errors in tutorial
Reply #3 - Sep 22nd, 2008 at 12:25pm
Print Post  
ok, so how do we use the recurence, any example?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Compile errors in tutorial
Reply #4 - Sep 22nd, 2008 at 12:59pm
Print Post  
Assign it to some Appointment object as shown in Tutorial 2 in the help file. This turns the appointment into a recurrent item, and when you add it to the schedule, you should see its multiple instances.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint