jSherz
jSherz

Reputation: 927

Visual Basic 2010 String Containing a Speech Mark

How can I make a speech mark in a string? The following shows the whole of the line and all code after that (With the Express IDE) to be a comment as well:

Variable = "\""

Upvotes: 0

Views: 465

Answers (2)

T3hc13h
T3hc13h

Reputation: 51

I prefer Chr(34) or Convert.ToChar(34)

Upvotes: 0

kennytm
kennytm

Reputation: 523374

Try

Variable = """"

Upvotes: 3

Related Questions