Hi Andrew,
you wrote:
>
>Reminder?: function [Date [date!]] [Reminder] [
> Reminder: Daily? Daily_Schedule Date/Time
> if none? Reminder [
> Reminder: Weekly? Weekly_Schedule Date
> ]
> Reminder
> ]
If I understand your code correctly, then there can be reminders scheduled
that are repeated every day. That is done in the Daily_Schedule. Other
reminders can be scheduled to be repeated on a specific day of the week.
Those are the reminders in the Weekly_Schedule.
The code fragment above will only check for a recurring reminder in the
weekly schedule, if it didn't find a recurring reminder in the daily schedule:
>> if none? Reminder
Wouldn't it be possible for two different reminders to be scheduled both in
Daily_Schedule as well as Weekly_Schedule for the same day and time?
Perhaps you want to record a show while you're watching another one? Or
perhaps you want to schedule a different reminder, such as write the
reminder script while you're watching StarTrek?
If that were the case you would miss the weekly reminder, because your
program already found the daily reminder, none? Reminder returns false and
checking the weekly schedule is not invoked.
Take Care,
Elan