Derek,
What you are trying to do will actually be better accomplished by using the
replace function.

Replace(string, substring1, substring2 [, scope ])

<cfset outval = replace("#foo#", "#bar#", #bar#)>

Although if it were me, I would change the value in the database that you
want to be "bar" to be @@bar@@, making it unique, therefore your replace
will have more success, and less chance of replacing something you don't
want to.

Rob

Oh, and for information on tags, the livedocs are great, and yes, this list!

On Wed, Sep 24, 2008 at 6:30 PM, Randi Knutson <[EMAIL PROTECTED]> wrote:

> No, actually I think the best resource is this list and the cf-talk list!
> The archives almost always help me.  Well, except for today, but that's
> another thing I guess.....
>
>
> [email protected] on Wednesday, September 24, 2008 at 3:24 PM
> -0700 wrote:
> >Thanks Randi.
> >
> >Do you know of a good resource to learn the ins and outs of using
> >evaluate()? It seems pretty limited for such an important function.
> >Doesn't this situation come up a lot??
> >
> >TIA,
> >derekhed
> >
> >>I usually do something like this, but you're right, sounds like the value
> >>of your var is the problem.  Anyway, for what it's worth:
> >>
> >>      <cfset var1="form.formField_#i#_#r#">
> >>      <cfset var2="#evaluate(var1)#">
> >>
> >>      Then I can
> >>      Update myTable set myField='#var2#'
> >>
> >>There is without doubt a more elegant solution out there, the code I
> >>pulled this from is 9 years young and going strong.
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4020
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