I have this string in vb.net. I would appreciate if you can let me know how I can enclose the values in double quotes
dim str as string=""
str.Append("EmpID=" & empNo & " DeptID=" & deptID & "")
I want the value of string to be EmiID="10" DeptID="20"
Use double double quotes to get a single double quote in the string
str.Append("EmpID=""" & empNo & """ DeptID=""" & deptID & """")
ControlChars.Quote is nice to use :)
dim metatransferString as string = ""
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