Re: Embedding a newline in a vb.net string constant
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Wed, 6 Dec 2006 22:25:58 +0100
"Andrew Backer" <awbacker@xxxxxxxxx> schrieb:
Is it possible to embed a newline constant in a string in the same way
as c#? I really don't want to do something like this:
++ String.Format("Line 1 : {0} " & vbcrlf & " Line 2 : {1}", o, t)
What's the problem? The code is functionally completely equivalent to the C# code if "\r\n" is embedded into the literal in the source code. Note that the concatenation can be performed by the compiler because 'vbCrLf' is a constant!
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- References:
- Embedding a newline in a vb.net string constant
- From: Andrew Backer
- Embedding a newline in a vb.net string constant
- Prev by Date: Re: Embedding a newline in a vb.net string constant
- Next by Date: Re: Embedding a newline in a vb.net string constant
- Previous by thread: Re: Embedding a newline in a vb.net string constant
- Next by thread: Re: Embedding a newline in a vb.net string constant
- Index(es):
Relevant Pages
|