Mega Code Archive

 
Categories / VB.Net Tutorial / Data Type
 

NewLine sign

Public Class Tester     Public Shared Sub Main         Dim result As New System.Text.StringBuilder         result.Append("vbNewLine").Append(vbNewLine)         result.Append("vbCrLf").Append(vbCrLf)         result.Append("vbCr").Append(vbCr)         result.Append("vbLf").Append(vbLf)         result.Append("Chr(13)").Append(Chr(13))         result.Append("Chr(10)").Append(Chr(10))         result.Append("Chr(13) 'Chr' is not recognized as an internal or external command, operable program or batch file.         result.Append("Environment.NewLine").Append(Environment.NewLine)         result.Append("ControlChars.CrLf").Append(ControlChars.CrLf)         result.Append("ControlChars.NewLine").Append(ControlChars.NewLine)         Console.WriteLine(result.ToString())       End Sub End Class vbNewLine vbCrLf vbLf Chr(10) Chr(13) & Chr(10) Environment.NewLine ControlChars.CrLf ControlChars.NewLine