Actually they're not necessary. This will also work:
<cfset strMyString=replace(strMyStringOld, "ab", "bc","all")>
Michel Vuijlsteke
> -----Original Message-----
> From: Vani Kolli [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 4:39 PM
> To: CF-Talk
> Subject: RE: Replace
>
>
> also hash signs should be for the whole replace not for the string
>
> <cfset strMyString = #Replace(strMyStringOld, "ab", "bc","all")#>
>
> It happened to me before now it works thanks for all those
> who helped me.
>
> Vani
>
> -----Original Message-----
> From: Shari Jung [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 15, 2001 11:51 AM
> To: CF-Talk
> Subject: Replace
>
>
> I am trying to use the replace command to replace every character in a
> string with another. I can get it to work just doing one,
> but when I add
> the scope it errors.
>
> Example code: <cfset strMyString = Replace(#strMyStringOld#,
> "ab", "bc",
> all)>
>
> Error Message:
> Error resolving parameter ALL
> ColdFusion was unable to determine the value of the
> parameter. This problem
> is very likely due to the act that either:
> You have misspelled the parameter name, or
> You have not specified a QUERY attribute for a CFOUTPUT,
> CFMAIL, or CFTABLE
> tag.
> The error occurred while evaluating the expression:
> <cfset strMyString = Replace(#strMyStringOld#, "ab", "bc", all)>
>
> Works fine if I leave off the ", all" Tried all kinds of
> variations, but
> none work. Anyone have an idea what I am doing wrong?
>
> Thanks,
> Shari Jung
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists