The purpose of the question is not clear. It cannot be determined if you are asking how to split a string that contains newline characters or whether you intend to split a string into several lines.
Please provide the BEFORE and AFTER strings you wish to achieve and I will tell you how to achieve it. It may be that the operation you require is not even a Split
It's not possible per se. In VB the end of the line is the end of the line. You can use the line continuation characters which are a space followed by an underscore, but you cannot have that within a string. You will have to concatenate several strings, which you can do over several lines:
It depends on the usage (question is unclear), for instance here are two alternatives to split/replace spaces with newline characters and display in multiline textbox:
VB.NET:
TextBox1.Lines = "test test test".Split(" ")
'or
TextBox1.Text = "test test test".Replace(" ", vbNewLine)
For html you could insert BR tags instead of newline characters to display text over several lines, but this is guessing too much of what Henk asks for..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.