This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Dear Jason, First of all, I want to thank you so much since your help and the code improved my code a lot. Now I encountered a new problem about checking whether there is a recurred schedule on a specific day or not. Let's say, I have a regular schedule on Monday, Wednesday, and Friday from Sep 3 to Dec 24 this year. So I add a scheduleitem on Sep 3 and set up a recurrence for the repeat. Then, is there any way to check that I have a schedule on Sep 7 and I don't have a schedule on Sep 8 with the scheduleitem on Sep 3? Hope this example can explain my situation. Sincerely, Hobin. |
|
|
Hello Hobin I have now exposed the Schedule.GetDay method. This will be available in the next nightly build. You can get an instance of the Schedule by using the Scheduler.Schedule property. Once you have the Schedule, call the GetDay method and pass in a DateTime object to indicate which day you want. This will return a DayModel object. From this you can iterate the ScheduleItems collection to see what items exist on this day. Remember to use this, you'll need to download the next nightly build. Let me know if you have any questions. Jason Fauchelle |
|