Put double quotes around the all like:

<cfset strMyString = Replace(#strMyStringOld#, "ab", "bc", "all")>

============================================================
  Russel Madere, Jr.         Senior Web Developer          
  ICQ: 5446158               http://www.TurboSquid.com   

Some days you eat the bear; some days the bear eats you.
============================================================
 

> -----Original Message-----
> From: Shari Jung [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 15, 2001 11:51
> 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

Reply via email to