i saw many evalute function in fusebox. <br>what's it for. what's the different result, if i don't use it.<br><br>e.g.<br><cfset "caller.attributes.#urlname#" = "#evaluate("url."&"#urlname#"#">
The Allaire documentation for some of the functions is pretty unclear, isn't it? The evaluate() function is used when you find yourself with nested pound signs.<br><br>In many cases, I've wanted to display a form in which part of a field name is itself a variable:<br><br><CFLOOP INDEX="R" FROM="1" TO="5"><br><INPUT TYPE="Text" NAME="Field#R#" SIZE=10><br></cfloop><br><br>On the next page when you want to get to the value of each field you use evaluate:<br><br><CFLOOP INDEX="R" FROM="1" TO="5"><br><CFSET foo = evaluate("Field#R#"><br></cfloop><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.