Monday, May 4, 2020

[VB][resolved] vb quotation mark in string

I have a html tag wanted assign to a String
Source:
Dim Str As String ="<div class="title">"
Used \ not works:
Dim Str As String ="<div class=\"title\">"


Solution:
You mean to use a double quotation mark in front of the quotation mark you want escape.
Dim Str As String ="<div class=""title"">"

Reference:
https://stackoverflow.com/questions/7767037/how-to-put-data-containing-double-quotes-in-string-variable

No comments :

Post a Comment