ASCII - Chr (10)???

  • 11 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


    LMDG

  • 11 years ago

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

    Code:

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


    it makesas message box with a new line in it


    peace out
    wee_luke

  • 11 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).

Contribute

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.

“Computer Science is no more about computers than astronomy is about telescopes.” - E. W. Dijkstra