Kuzon Kuzon - 2 months ago 7
Vb.net Question

How to include " in a string

How do I include the " character in a string.

For example

said = "John said "Hi""

Answer

There are also a set of Control Characters available:

Try

Dim s as String = "John said " & ControlChars.Quote & "Hi" & ControlChars.Quote

I find this much more readable than multiple quotes stacked together.

Comments