I need to put quotation mark in a text string in VB
ogletree
2:40 am on Oct 21, 2004 (gmt 0)
In VB I am appending text & "text". I want to be able to put quotation marks in there but quotation marks mean something in VB. ""text"" does not work.
txbakers
2:44 am on Oct 21, 2004 (gmt 0)
I think you need three sets to get it to recognize the double quotes inside a string.
I don't like using the double quotes with VB for that reason.
TheNige
3:06 am on Oct 21, 2004 (gmt 0)
Try using Chr(34)
example:
Response.write Chr(34) & "text" & Chr(34)
gets written to screen as: "text"
ogletree
3:34 am on Oct 21, 2004 (gmt 0)
"""" will display one "
Ok now how do I delete the last 2 chars from a string variable.