Welcome! Log In Create A New Profile

Advanced

[WD24] - Including quotes in a string

Posted by JP 
JP
[WD24] - Including quotes in a string
April 29, 2020 12:48PM
Hi All

I'm having a dim moment. I want to create a string like this:

MyVar is string = "HyperLink( "www.test.com" )"

which obviously doesnt work. What do i need to do to correct it? Forgotten ...
Argus
Re: [WD24] - Including quotes in a string
April 29, 2020 01:32PM
either playing with doubling tripling quadrupling quotes, or simply use caract(34)
JP
Re: [WD24] - Including quotes in a string
April 29, 2020 01:39PM
Yup, I found it. Double quotes where required.

Cheers!
MDP
Re: [WD24] - Including quotes in a string
April 30, 2020 03:45PM
You can also use multiline [ ] without escaping the double quote.
-- [doc.windev.com]



Info([
Hello "World"
])
JP
Re: [WD24] - Including quotes in a string
May 01, 2020 06:54AM
Cool, MDP. Thats also an easy solution. Thanks
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: