vb.net include quotes in string vb.net single quote in string

The solution for “vb.net include quotes in string vb.net single quote in string” can be found here. The following code will assist you in solving the problem.

TextBox1.Text = “Visual Basic is an ” & Chr(34) & “amazing” & Chr(34) & ” programming langauge”  Dim lQuotes As Char = Convert.ToChar(&H201C) ‘ “
Dim rQuotes As Char = Convert.ToChar(&H201D) ‘ ”

Dim str As String = String.Format(“{0}Hello World{1}”, lQuotes, rQuotes)

Console.WriteLine(str) ‘ “Hello World”

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts