Did you try this: <cfset StringToSearch = "##">
<cfset thisItem = ReplaceNoCase(thisItem, "#StringToSearch#", "", "ALL")> -----Original Message----- From: Pablo Varando [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 8:08 AM To: CF-Talk Subject: Re: Replacing the # What about this: <!--- put this OUTSIDE A CFOUTPUT ---> <cfset StringToSearch = "#"> <!--- Put this anywhere you want in the page ---> <cfset thisItem = ReplaceNoCase(thisItem, StringToSearch, "", "ALL")> That Should work..... give it a try and let me know... Pablo ----- Original Message ----- From: "Paul Giesenhagen" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003 11:51 PM Subject: Re: Replacing the # > Just tried it, and nope, it didn't work ... > > Thanks for trying though... > > Paul Giesenhagen > QuillDesign > > ----- Original Message ----- > From: "Pablo Varando" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, February 17, 2003 11:53 PM > Subject: Re: Replacing the # > > > > Try this: > > > > <cfset thisItem = ReplaceNoCase(thisItem, chr(35), "", "ALL")> > > > > That should work... > > > > Pablo > > ----- Original Message ----- > > From: "Paul Giesenhagen" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Monday, February 17, 2003 10:45 PM > > Subject: Replacing the # > > > > > > > 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 ---> > > > > > > Thanks > > > Paul Giesenhagen > > > QuillDesign > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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