comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Escaping Quotes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Escaping Quotes [message #44537 is a reply to message #44534] Mon, 20 June 2005 17:35 Go to previous messageGo to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
Michael Wallace wrote:
> I am having a brain cramp right now and can't even remember the
> simplest of IDL. How do you escape quotes given that you want both
> single and double quotes to appear in the string?
>
> '"This string doesn't work"'
>
> Naturally, I tried using the standard slash-style escaping you find in
> other languages, but to no avail.

Although I feel safer with Mark's approach myself, there's also:
s = "What's ""leveraged""?"
and
s = 'What''s "leveraged"?'

(I hope you're viewing this with a fixed-space font.)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to calculate the curve area?
Next Topic: converting bytarr into strarr

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 03:20:25 PDT 2025

Total time taken to generate the page: 1.43614 seconds