In the cfscript block, you can just do...

regOKMsg = rb("regOKMsg_1");

But that's not the point...

This should work for evaluating the string you've built up:

<cfset str = "##1 + 1## = 2">

<cfoutput>
<p>#str#</p>
<p>#Evaluate(DE(str))#</p>
</cfoutput>

Adrian

-----Original Message-----
From: Walter Conti [mailto:[EMAIL PROTECTED]
Sent: 21 May 2008 22:36
To: CF-Newbie
Subject: Evaluating text containing #...# variables


I create a variable with CFScript:
regOKMsg = #rb('regOKMsg_1')#;
which returns an HTML text with some tags and some CF variables like :

<span style=""font-size:1.8em""><b>Thank you.
blabla.</b></span><br><br>Blabla bla <i>but</i> ..... sent from
<b>#application.fromAddress#</b>. ......to <a
href=""mailto:#application.adminAddress#"";><b>#application.adminAddress#</b>
</a>...etc, etc

Outside of CFScript, I have tried to <cfset regOKMsg =
Evaluate('#regOKMsg#")> but CF doesn't like it and return error: < marks the
beginning of a ColdFusion tag.Did you mean LT or LTE?

Is there a way to evaluate those variables?

Thanks for helping.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3657
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to