How to Pass a Double Quote (")in a string ?
-
I want to put a Double Quote (") in a string. if I give it in a string, then the string terminates at the position where the Double Quote is put. Can anybody suggest how to put a Double Quote in a string ? Thanks In advance.
Sekhar :)
Try """". e.g. "This is a ""TEST"" string"
-
I want to put a Double Quote (") in a string. if I give it in a string, then the string terminates at the position where the Double Quote is put. Can anybody suggest how to put a Double Quote in a string ? Thanks In advance.
Sekhar :)
Hi, In regards to your query I would like to inform you that in order to print double qoutes in a sting we have to use two double quotes (e.g., ""). We can print the double quotes in a string as follows: BEGIN CODE Dim str As String = "I ""Love"" VB " MsgBox(str) END CODE The output will be I "Love" VB. I hope this helps :).
Regards, John Adams ComponentOne LLC
-
I want to put a Double Quote (") in a string. if I give it in a string, then the string terminates at the position where the Double Quote is put. Can anybody suggest how to put a Double Quote in a string ? Thanks In advance.
Sekhar :)
Use ChrW(34) Like this: TextBox1.Text = ChrW(34) & "This is a string." & ChrW(34) The output would be: "This is a string." You can put any character in ChrW(.) by looking at this page: http://www.utoronto.ca/webdocs/HTMLdocs/NewHTML/iso_table.html[^] As you can see, the double quote char is decimal 34.