New line character

  • Thread starter Thread starter Roshawn
  • Start date Start date
R

Roshawn

Hi,

I'm creating some text based on certain parameters using a StringBuilder. I was wondering, how do I specify a newline
character in VB.NET?

Thanks,
Roshawn
 
Environment.NewLine, however you can use StringBuilder.AppendLine which will
automatically add a new line char at the end of the line.

Rick
 
Roshawn said:
I'm creating some text based on certain parameters using a StringBuilder.
I was wondering, how do I specify a newline character in VB.NET?

In addition to the other reply:

System-specific new line character sequence: 'Environment.NewLine'.
System-independent new line character sequences: 'ControlChars.NewLine',
'ControlChars.CrLf', ..., 'vbNewLine', 'vbCrLf', ...
 
chr(13) chr(10)

:-)

Cor

Herfried K. Wagner said:
In addition to the other reply:

System-specific new line character sequence: 'Environment.NewLine'.
System-independent new line character sequences: 'ControlChars.NewLine',
'ControlChars.CrLf', ..., 'vbNewLine', 'vbCrLf', ...
 
Back
Top