Click to See Complete Forum and Search --> : VB, Strings and Quote marks


K-os
January 27th, 2000, 07:47 PM
Hi!

I think am not a beginner any more, but I have got a quite easy question.
Does any body know if it is possible in VB to easily include quote marks (") in a string. Instead of using the ascii code, converting it to a character with Chr(34) and adding it to the string.
Is there an easy way like in C/C++ where you just write \" to get a " .

Thanx in advance

JimmyT
January 27th, 2000, 07:58 PM
This example will put the phrase

She said, "You deserve a treat!" into a textbox

[vbcode]
Text1 = "She said, ""You deserve a treat!"" "

[\vbcode]

K-os
January 28th, 2000, 09:58 PM
Hey, Cool thank you!
I did not know, that it was that easy. I have got 3 books about VB and none of them said any thing about how to do it.