Hi Guys!
I am having trouble trying to put a " inside a string. Any help?
Many Thanks,
Googie.
Using " inside a string.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4036
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Using " inside a string.
Hi Google,
use the keyword quote.
put this into the message box and hit return
or Klaus has a nifty function for this I think he calls it kwote.
Kind regards
Bernd
use the keyword quote.
put this into the message box and hit return
Code: Select all
put "first word " & quote & " second word " & quote
Code: Select all
on mouseUp
put kwote("first word") && "and" && kwote("second word")
end mouseUp
function kwote pWhatToQuote
return quote & pWhatToQuote & quote
end kwote
Kind regards
Bernd
Re: Using " inside a string.
Klaus, that looks adorable!
Re: Using " inside a string.
I call my li'l functions "q" (quotes) and "q2" (single quotes), but the name "kwote" definitively bears Richmonds signature!
Re: Using " inside a string.
Well, loving cuteness in code as I do, to whomever was the author, that ranks right up in the top 10 cutesies I have seen this year, and you can kwote me on that