ASCII - Chr (10)???

  • 15 years ago

    Hi guys:

    I was looking at a code sample, something like this:

    Newline was a string:

    NewLine = Chr (13) & Chr (10)

    I know that 13 is Enter but I dont know what 10 is...

    Can anybody help?

    Thank you


  • 15 years ago

    im not to sure what it is but i thnk its to make a new line


    Private Sub Form_Load()
    MsgBox "hello" & Chr(10) & "Good-bye"
    End Sub

    it makesas message box with a new line in it

    peace out

  • 15 years ago

    There are two VB constants that can accomplish this - vbCrLf and vbNewLine. The two values are 'carriage return' and 'line feed'

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup