Yeah but you have to be careful with how much you use those functions in an
application.  I know at least on our CF6 server here for one project that
extensively uses those it does in fact eat up a good bit of resources when a
normal user load is on it.

On Fri, Oct 10, 2008 at 4:50 PM, Ian Skinner <[EMAIL PROTECTED]> wrote:

> >I have in my DB under the field of answer...
> >
> >We have currently #users.recordcount# players signed up with this site
> >that your event would reach. While it may not be many in the pure view,
> >if 7 come to your convention, that would pay for our services (Figuring
> >the room costs a total of $200 and you charge $30 for admission). Any
> >above that can't hurt your bottom line.
> >
> >exactly. The #users.recordcount# as well.
> >
> >When I run this code..
> >
> ><cfoutput query="FAQ">
> >       <div class="FAQAnswer">
> >               #Evaluate("FAQ.Answer")#
> >       </div>
> ></cfoutput>
> >
> >It shows #users.recordcount# (with the pound signs) and not 32 like I
> >would think it would.. I tried also just putting #FAQ.Answer#, but that
> >doesn't work either.
> >
> >How do I make CF treat data it pulls from the DB as variables and not a
> >string?
>
> Going back to you original question, contrary to Azadi's and Matt's
> answers, you can do this.  I am not sure this is better then the replacement
> technique that has already been worked out, but in the names of fairness and
> completeness.  You could have done something like this.
>
> <cfoutput query="FAQ">
>        <div class="FAQAnswer">
>                 #Evaluate(DE(FAQ.Answer))#
>        </div>
> </cfoutput>
>
> It requires a combination of the de() 'delay evaluate' and evaluate()
> functions to get ColdFusion to render variables contained inside of string
> variables.  No guarantees on how robust this solution is, but it is
> technically possible.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313773
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to