Kuzon Kuzon - 1 year ago 115
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 Source

There are also a set of Control Characters available:


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

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download