It may be more readable if you'd use the Chr$() function to insert the quotes into a string.
Chr$(34) will give you the quotation symbol, so the following two lines are equivalent:
"""text in quotes"""
Chr$(34) & "text in quotes" & Chr$(34)
Printable View
It may be more readable if you'd use the Chr$() function to insert the quotes into a string.
Chr$(34) will give you the quotation symbol, so the following two lines are equivalent:
"""text in quotes"""
Chr$(34) & "text in quotes" & Chr$(34)
orQuote:
Originally posted by Boldy:
It may be more readable if you'd use the Chr$() function to insert the quotes into a string.
Chr$(34) will give you the quotation symbol, so the following two lines are equivalent:
"""text in quotes"""
Chr$(34) & "text in quotes" & Chr$(34)
strVar=Chr$(34)+" text in quotes " + Chr$(34)
either way. https://www.sharkyforums.com/images/.../2005/08/2.gif
------------------
Baby of Edgewood @ birth (03/09/01, 12:34am)
6 lbs 7 ounces
18 inches long
perfectly healthy
sorry VB has no escaping sequences https://www.sharkyforums.com/images/.../2005/06/5.gifQuote:
Originally posted by praxis:
Will VB really figure that out???
In every language I've ever dealt with, ""hello"" will cause a compile error (unrecognized token or something), because the first starts it and the second ends it, so 'hello' is to be interpreted as a variable.
However, I'm pretty sure escaping is universal... e.g. \"text to appear in quotes\" ...with this you can also do:
dim myString As String
String = "\"text in quotes\""
MsgBox(myString)
------------------
someone set up us the bomb!