[thelist] CF form problems...
Raymond Camden
jedimaster at macromedia.com
Mon Jun 3 07:35:01 CDT 2002
> the other common use of the Evaluate function is when performing
> mathematical calculations -- especially as an attribute value of a
> coldfusion tag.
>
> don't do this:
>
> <cfloop from="1" to="#Evaluate(ArrayLen(myArray) - 1)#"
>
> do this instead:
>
> <cfset to = ArrayLen(myArray) - 1>
> <cfloop from="1" to="#to#"
>
Just to be anal - don't forget the decrementValue function:
<cfloop from="1" to="#decrementValue(arrayLen(myArray))#">
p.s. Sorry I've been so quiet the last few weeks - a new child will do
that to you. ;)
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia
Email : jedimaster at macromedia.com
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
More information about the thelist
mailing list