<cfset currYear= Year((now()))>
<cfset currYear=int(currYear)>

<CFLOOP index="yearCnt" from='2000' to='#currYear#'>
<tr>
 <td><CFOUTPUT>#yearCnt#</CFOUTPUT></td>
</tr>
</cfloop>

is working fine on my end. If you're still getting an error there must be a
typo somewhere.

Francois Levesque
http://blog.critical-web.com/


On Fri, Jul 24, 2009 at 9:47 AM, N K <neetukais...@gmail.com> wrote:

>
> Yes thats a typo in my email.Adding ## sign does not help ....
>
> The error coming up is
>  Attribute validation error for the CFLOOP tag.
> The value of the TO attribute is invalid. The value cannot be converted to
> a numeric because it is not a simple value.Simple values are booleans,
> numbers, strings, and date-time values.
>
>
> Thank You
> NK
>
> >Is Year((now)) a typo in your email?
> >
> >If not, try Year(Now()) and you will need the #'s in the to attribute of
> >cfloop.
> >
> >Adrian
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:324928
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to