How do I include the " character in a string.
For example said = "John said "Hi""
You need to double up the quotes to escape them in VB
e.g. said = "John said ""Hi"""
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With