Welcome! Log In Create A New Profile

Advanced

Multiple Quotes In A String

Posted by kevinw 
kevinw
Multiple Quotes In A String
May 28, 2008 07:01PM
How do I define a string in WinDev when the content itself already contains double quotes?

eg

sString is string = ""a", "b", "c""

The compiler objects to this.

TIA, Kevin
BLS
Re: Multiple Quotes In A String
May 28, 2008 07:21PM
x is string = " ""A"" ""B"" "
trace(x) // -> "A" "B"
Leo Voet
Re: Multiple Quotes In A String
May 28, 2008 09:25PM
Quote
kevinw
How do I define a string in WinDev when the content itself already contains double quotes?

eg

sString is string = ""a", "b", "c""

The compiler objects to this.

TIA, Kevin

double the double quotes==> sString is string = """a"", ""b"", ""c"""
BTW it is explaned in the Help somewhere! But as often, it is difficult to find.
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: