Whatever message this page gives is out now! Go check it out!
Evaluate(expression) |
Parameter | Description |
expression | Expressions to evaluate |
<cfset var=Evaluate("qNames.#colname#[#index#]")> |
<!--- This example shows the use of PrecisionEvaluate and DE functions.--->
<h3>Evaluate Example</h3>
<cfif IsDefined("FORM.myExpression")>
<cftry>
<!--- Evaluate the expression --->
<cfset theExpression = Evaluate(Form.myExpression)>
<cfoutput>
<!--- The DE function prevents the Evaluate function from evaluating
the expression. --->
The value of the expression #Evaluate(DE(FORM.MyExpression))#
is #theExpression#.<br>
<!--- The following line does not use the DE function. --->
The value of the expression #FORM.MyExpression#
is #theExpression#.<br>
</cfoutput>
<cfcatch type="application">
<cfoutput>Could not evaluate the expression #Form.myExpression#.<br>
Make sure you enter a valid ColdFusion Expression.
</cfoutput>
</cfcatch>
</cftry>
</cfif>
<cfform preservedata="yes">
<h3>Enter a ColdFusion expression for evaluation</h3>
<cfinput type="text" name="myExpression" size="60"><br />
<br />
<cfinput type="submit" name="submit">
</cfform>