Friday, February 22, 2008

Quick way to populate drop down for calendar Years

range := (-1) : 0 : 1 : 2 : 3;
thisYear := @Year(@Today);
thisYear + range
Although, this works in web, I find that Notes Client needs this list as "Text" !, so we the last line changed to:
@Text(thisYear + range)

Result:
2007
2008
2009
2010
2011