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

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.