NewLine sign: vbNewLine, vbLrLf, vbCr, Environment.NewLine, ControlChars.NewLine : Special Chars « Data Type « VB.Net Tutorial






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








2.15.Special Chars
2.15.1.NewLine sign: vbNewLine, vbLrLf, vbCr, Environment.NewLine, ControlChars.NewLine
2.15.2.vbNewLine
2.15.3.Concatenate vbTab with Integer
2.15.4.Insert line separator