![MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference Download Page 359](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-cfml-language/coldfusion-4-5-cfml-language_reference_3287257359.webp)
Chapter 2: ColdFusion Functions
335
DE
Returns its argument with double quotes wrapped around it and all double quotes
inside it escaped. The DE (Delay Evaluation) function prevents the evaluation of a
string as an expression when it is passed as an argument to IIf or Evaluate.
See also
Evaluate
and
IIf
.
Syntax
DE
(
string)
string
String to be evaluated with delay.
Examples
<!--- This shows the use of DE and Evaluate --->
<HTML>
<HEAD>
<TITLE>
DE Example
</TITLE>
</HEAD>
<BODY BGCOLOR=silver>
<H3>DE Example</H3>
<CFIF IsDefined("FORM.myExpression")>
<H3>The Expression Result</H3>
<CFTRY>
<!--- Evaluate the expression --->
<CFSET myExpression = Evaluate(FORM.myExpression)>
<!--- Use DE to output the value of the variable, unevaluated --->
<CFOUTPUT>
<I>The value of the expression #Evaluate(DE(FORM.MyExpression))#
is #MyExpression#.</I>
</CFOUTPUT>
<!--- specify the type of error for which we are fishing --->
<CFCATCH TYPE="Any">
<!--- the message to display --->
<H3>Sorry, there’s been an <B>Error</B>.
Try a simple expression, such as "2+2".</H3>
<CFOUTPUT>
<!--- and the diagnostic message from ColdFusion Server --->
<P>#CFCATCH.message#
</CFOUTPUT>
</CFCATCH>
</CFTRY>
</CFIF>
...
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...