You need to put the "ALL" attribute in quotes. Makes a certain amount of
sense, from a programming perspective. It's trying to resolve a variable
named ALL, and can't find that variable. If you change it to a string
value, it should work.
Jason Powers
Fig Leaf Software
202-797-5440
-----Original Message-----
From: Shari Jung [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 12:51 PM
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