Thanks for the pseudo-code, Matt. I'll study that and see if I can wrap my brain around your approach...
Rick > -----Original Message----- > From: Matt Robertson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 29, 2005 8:05 PM > To: CF-Talk > Subject: Re: Man, I'm just really banging my head over this one... > > > On 11/29/05, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > Boy, Matt, I'd love to see the code that processes all the > > options in that drop-down...got any of it handy? > > I was just sayin' that it sounded like a reasonable way to go about > the task. I hadn't actually written anything. However I have a slow > afternoon and need to brush up on my date functions, so here's one, > formatted as text for easy presentation > > http://mysecretbase.com/dateswitch.txt > > What I wrote here covers just reminders at 1-7 day intervals, and > includes a date-based end date which will terminate the event build if > the selected number of repeats goes past the designated stop date, and > a skip interval (as in every three days, but skip one or more three > day periods in between). > > This is just the 'daily' case of the cfswitch, and yes it allows you > to select intervals that are a little zany, but if your philosophy is > to let users select whatever the heck they want no matter how crazy, > this is in that direction. > > Other cases for the switch would be > > named days -- Every Monday, every other Monday, every third Tuesday > etc. (using the same skip interval idea), > > Numbered days -- The 23rd of every month. > > Specific days -- first Monday of every month. First and third > Tuesday. That sort of thing. > > annual dates -- birthdays and such > > CF and cflib together would let you do all sorts of things. First > business day of every month, for example. > > - > --mattRobertson-- > Janitor, MSB Web Systems > mysecretbase.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225652 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54