I think if you add one \ (escape character) then you will be able to save the single quote
s surname=$replace("O'Brien","'","\'")
w surname
O\'Brien
Regards
Manel
-----Missatge original-----
De: ensemble-in...@googlegroups.com [mailto:ensemble-in...@googlegroups.com] En nom de Mick
Enviat: dilluns, 16 / gener / 2012 18:27
Per a: InterSystems: Ensemble in Healthcare
Tema: [InterSystems-EnsHlth] Re: How to replace single quote with double quote within a string
Hi Stefan
Michael
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en