vbCrLf and vbNewLine - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

vbCrLf and vbNewLine

AnDy_LiNAnDy_LiN Posts: 83Member
They look the same to me. Is there any specific difference?

Comments

  • ZeanneZeanne Posts: 3Member
    : They look the same to me. Is there any specific difference?
    :
    vbCrLf is just a "hard-coded" Carriage Return and Line Feed.

    vbNewLine is platform specific and will contain whatever the appropriate codes are to generate a new line.
  • prgmingfreakprgmingfreak Posts: 30Member
    : : They look the same to me. Is there any specific difference?
    : :
    : vbCrLf is just a "hard-coded" Carriage Return and Line Feed.
    :
    : vbNewLine is platform specific and will contain whatever the appropriate codes are to generate a new line.
    :

    Here are the facts:

    Carriage return justs puts the cursor position down one line without moving the cursor back to the far left.

    Linefeed moves the cursor back to the beginning of the line.

    vbCrlf just combines the two and makes things simpler for beginners.



    - Chris

    Email: [email protected]
    Website: http://prgmrChris2k1.cjb.net/


    | C/C++ | Visual Basic | Z80 ASM |



  • AnDy_LiNAnDy_LiN Posts: 83Member
    : : : They look the same to me. Is there any specific difference?
    : : :
    : : vbCrLf is just a "hard-coded" Carriage Return and Line Feed.
    : :
    : : vbNewLine is platform specific and will contain whatever the appropriate codes are to generate a new line.
    : :
    :
    : Here are the facts:
    :
    : Carriage return justs puts the cursor position down one line without moving the cursor back to the far left.
    :
    : Linefeed moves the cursor back to the beginning of the line.
    :
    : vbCrlf just combines the two and makes things simpler for beginners.
    :
    :
    :
    : - Chris
    :
    : Email: [email protected]
    : Website: http://prgmrChris2k1.cjb.net/
    :
    :
    : | C/C++ | Visual Basic | Z80 ASM |
    :
    :
    :
    :

    I see......Thanks
  • melissa_may1melissa_may1 Posts: 937Member
    : Carriage return justs puts the cursor position down one line without moving the cursor back to the far left.
    :
    : Linefeed moves the cursor back to the beginning of the line.
    :

    Sorry Chris, it looks like you reversed these!

    Carriage return moves the cursor back to the beginning of the line.

    Linefeed moves the cursor position down one line without moving the cursor back to the far left.




    [purple]Melissa[/purple]

  • FQUFQU Posts: 1Member
    Really interesting dicussion, but it's very different when they become ASCII characters and appear in a source file cross platforms...
Sign In or Register to comment.