> 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)>

All must be in quotes;
<cfset strMyString = Replace(#strMyStringOld#, "ab", "bc", "all")>

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify 
the system manager.
**********************************************************************
 

> -----Original Message-----
> From: Shari Jung [mailto:[EMAIL PROTECTED]]
> Sent: 15 January 2001 17:51
> To: CF-Talk
> Subject: Replace
> 
> 
> 
> 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