The whole idea of not using "to="#year(now())#" and declaring it is because the currYear variable is used at more than one place.
So if the variable is set used CFSET then there are couple of modifications required. NK >1) year(now()) returns an integer - there is no need to call int() >function on it. > >2) the <cfoutput>... line in your code is totally useless and unnecessary. > >3) is this code of yours in a cfm page or in a cfc function? > >4) again, the simple ><cfloop from="2000" to="#year(now())#" index="yearCnt"> >ALWAYS works. > > >Azadi Saryev >Sabai-dee.com >http://www.sabai-dee.com/ > > >On 24/07/2009 23:23, N K wrote: >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324947 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

