Paul, What is the error that you are getting from the CFSET?
Pablo's suggestion of : <cfset thisItem = ReplaceNoCase(thisItem, chr(35), "", "ALL")> should work just fine. regards Stephen ----- Original Message ----- From: "Paul Giesenhagen" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 6:09 AM Subject: Re: Replacing the # > It currently isn't in a CFOUTPUT it errors on the <cfset> > > Toughy huh?! > [snip] > > > > > I am trying to check a variable to make sure it doesn't have a # sign in > > > > the variable and if it does, I want to remove it. Here is what I have, but > > > > it errors out with 1 (makes sense), but it doesn't replace if I have two! > > > > Any suggestions? > > > > > > > > > > <cfset thisItem = ReplaceNoCase(thisItem, "#", "", "ALL")> > > > > > <!--- Errors out ---> > > > > > > > > > > <cfset thisItem = ReplaceNoCase(thisItem, "##", "", "ALL")> > > > > > <!--- Doesn't replace ---> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

