0

Possible Duplicate:
Multiline strings in VB.NET

How do you specify a multiple line string literal in Visual Basic .NET?

You can do it in C#: Multiline String Literal in C#

Community
  • 1
  • 1
Malartre
  • 1,511
  • 18
  • 28

1 Answers1

5

This is not supported in VB.Net. The most common way is to do the following

Dim text = "First Line" & vbCrLf & _
  "Second Line" & vbCrLf & _
  "Third Line"
JaredPar
  • 733,204
  • 149
  • 1,241
  • 1,454