I use this...

<cfset double_quote = chr(34)>
<cfset single_quote = chr(39)>

Replace(field_to_be_changed, double_quote, single_quote ,"ALL")




----- Original Message ----- 
From: "Brian Gilbert" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 23, 2003 9:27 AM
Subject: [cfaussie] replace function help plz


> how can I replace the occurance of " in a string?
>
> replace(form.name,""","'","ALL")
> gives error...
>
> Cheers
>
> Brian Gilbert
>
> Wesley College, Melbourne Australia
> Position:  Web Architect
> Ph:          +61 (0)3 9881 5459
> Fx:           +61 (0)3 9802 0142
>
> Personal Website: http://www.realityloop.com/
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to