On 7/27/00, SIMEON, ROLANDO (SBCSI) penned:
>Let's say that I output the contents of a variable:
>
><CFOUTPUT>#variable#</CFOUTPUT>
>
>And it prints on the screen: 'hello'
>
>How do I manipulate the string so that I can get rid of the "enclosing"
>single quotes so that if I were to repeat the above cfoutput tags it would
>print:
>
>hello
>
>I tried this but it throws an error because of the single quote... I tried
>"escaping" it with another single quote but it seems like it ignores both of
>them altogether:
><CFSCRIPT>
>variable = Replace(variable, "'", "");
></CFSCRIPT>
It doesn't give me an error.
replace(variable, "'", "", "ALL")
You could try using the ASCII character:
replace(variable, chr(39), "", "ALL")
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.