Forum Moderators: open

Message Too Old, No Replies

I need to put quotation mark in a text string in VB

         

ogletree

2:40 am on Oct 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



"""" will display one "

Ok now how do I delete the last 2 chars from a string variable.

aspdaddy

12:40 pm on Oct 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



str=left(str, len(str)-2)
:)