I want to have multi line string in vb.net, This work fine when i use my code in button click, but when i move it to module i receive an error. Here it is the code:
Dim strTest As String = "Hi,
Welcome to my test
How you are you?"
It work fine in my button click, but in module i receive this error : Error Image
BC30648: String constants must end with a double quote.
I know i can use vbCrLf end of my text and append my second line but i have 50 text like this which i want to move in module. This code work in module :
Dim strTest As String = "Hi," + vbCrLf +
"Welcome To my test" + vbCrLf +
"How you are you?"
UPDATE : after i close and reopen my project now i can see error in "Dim strTest" with this massage :
Error BC36716 Visual Basic 12.0 does not support multiline string literals.
I use VS 2015 and this project is .Net framework 4.5