It should be this:
<cfset outval = Evaluate("#bar#)>
<cfoutput>#outval#</cfoutput>
However, I haven't tested this.
Rob
On Wed, Sep 24, 2008 at 4:53 PM, Derek Hedstrom <[EMAIL PROTECTED]>wrote:
> I am having trouble with Evaluate().
>
> The first line of my page's content is:
> <H3>Big Fat Section Header</H3>
>
> I get an error when using Evaluate():
> Invalid CFML construct found on line 1 at column 1.
> ColdFusion was looking at the following text:
>
> <
>
> The CFML compiler was processing:
>
> < marks the beginning of a ColdFusion tag.Did you mean LT or LTE?
>
> How do I get Evaluate() to work?
>
> derekhed
>
> On Sep 24, 2008, at 12:38 PM, Adrian Lynch wrote:
>
> > Check out Evaluate(). If you trust the content, it'll work nicely.
> >
> > Adrian
> >
> > -----Original Message-----
> > From: Derek Hedstrom [mailto:[EMAIL PROTECTED]
> > Sent: 24 September 2008 21:32
> > To: CF-Newbie
> > Subject: Outputting a variable in a variable
> >
> >
> > I have a page in which the content is to contain a CF variable:
> > Some page text: #foo#. Some more page text.
> >
> > I am storing the contents of this page in a database. I query the
> > database and set the results in #bar#:
> > <CFQUERY NAME="bar" DATASOURCE="#Application.Datasource#">
> > SELECT
> > content
> > FROM
> > view
> > WHERE
> > ID = <cfqueryparam value="#Attributes.RecordID#"
> > cfsqltype="cf_sql_integer" maxLength="2">
> > </CFQUERY>
> >
> > I can query my database and output #bar# as the text of the page, but
> > I want the variable #foo# to also be parsed.
> >
> > How can I get #foo# to be parsed on the page?
> >
> > TIA,
> > derekhed
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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-Newbie/message.cfm/messageid:4013
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15