[Remind-Fans] Functions returning a full reminder?
Dan Kelmenson
remind at edank.com
Thu Jan 11 13:43:21 EST 2007
I'm trying to write a function that would make birthdays and
anniversarys as simple as possible, but haven't been able to get it
working yet.
Here's what I've gotten so far:
FSET bdmsg(name) name + "'s birthday " + d()
FSET bdmsgyear(name, year) name + "'s "+_yr_num(year)+" birthday " + d()
REM sep 21 ++14 MSG [bdmsgyear("John", 1979)]
REM oct 4 ++14 MSG [bdmsgyear("Jane", 1995)]
REM jan 5 ++14 MSG [bdmsg("Bob")]
But I'd like some function so everything repeated is unnecessary.
birthday("John", "sep 21", 1979)
birthday("Jane", "oct 4", 1995)
birthday("Bob", "jan 5") // if optional parameters exist...
I haven't figured out how to write such a "birthday()"
function. Anybody see how that can work?
Thanks,
Dan
More information about the Remind-fans
mailing list