It's main use is within IF and Evaluate, preventing them from treating
strings as expressions and trying to evaluate them (hence the name : delay
evaluation).ColdFusion will try to evaluate anything within pound signs
first, using DE() allows you to have it evaluate the internal parts
surrounded by pound signs later, rather than trying to evaluate the whole
thing as an expression.

I use evaluate() and de() mostly for dynamic logical processing
(implementing rules and complex data filters) but I find the writing dynamic
code using CFFILE and including it is much faster for large/high-volume or
complex applications.

After reading this explanation I wonder if I truly understand it as well...

Shlomy


-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 4:34 AM
To: CF-Talk
Subject: Re: run CF from db


I have to say I've never grasped what de() actually does!
:-(

----- Original Message -----
From: "Shlomy Gantz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 10:47 PM
Subject: RE: run CF from db


> I am not sure that is entirely correct.
>
> I use evaluate() and de() and it works fine.
>
> <cfoutput>#evaluate(de(getContentTypes.CTEmailTemplate))#</cfoutput>
>
> It is not fast but definetly works. evaluate() and de() together are
really
> slow, but they work even with HTML tags in the database.
>
> example:
>
> <cfset myVar = "Shlomy">
>
> <cfset dynText ="hello my name is ##myVar##">
> dynText: <cfoutput>#dynText#</cfoutput><hr>
>
> <cfset dynOut =evaluate(de(dynText))>
> dynOut: <cfoutput>#dynOut#</cfoutput>
>
>
>
> Shlomy
>
>
> -----Original Message-----
> From: Matthew Walker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 3:17 PM
> To: CF-Talk
> Subject: RE: run CF from db
>
>
> Generally this won't work. It would only work if you were storing a cf
> expression, e.g "int(3.1415)". It won't handle cf tags or expressions
> mixed with html.
>
> > -----Original Message-----
> > From: Jesse Houwing [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 18 September 2002 10:17 a.m.
> > To: CF-Talk
> > Subject: Re: run CF from db
> >
> >
> > Nick Varner wrote:
> > > Is there a way to evaluate Coldfusion after it is pulled
> > from a db instead
> > > of CF thinking its text?
> >
> > That would be the use of evaluate... but I would not reccomend it...
> >
> > Jesse
> >
> >
> >
>
>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to