开发者

Multiline string literal in vb.net? [duplicate]

开发者 https://www.devze.com 2023-04-05 02:04 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Multiline strings in VB.NET
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Multiline strings in VB.NET

How do you specify a multiple line string literal in V开发者_如何学运维isual Basic .NET?

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


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"
0

精彩评论

暂无评论...
验证码 换一张
取 消