What is vbCrLf???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syedshaffee
    New Member
    • Jan 2012
    • 91

    #1

    What is vbCrLf???

    Hey people,

    Can some give me a simple explanation on
    Code:
    vbCrLf
    I Don't exactly known what it is used for
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    It stands for
    vb: Visual Basic
    Cr: Carriage Return
    Lf: LineFeed

    In the ole days of typewriters the carriage return means to move the carriage all the way back left.
    Linefeed simply is to push the paper in the typewriter up a line, giving a new blank line.

    For a bit more Detail:
    Code:
    vbCrLf = vbNewLine = chr(13) & chr(10)

    On a interesting note you will find that Excel uses only chr(10) instead of the combination of the chr(13) and chr(10). I have on occasion when moving data back and forth between the Access and excel depending on how its done had to do a search and replace to get the conversion right.
    Last edited by TheSmileyCoder; Sep 18 '12, 09:49 AM.

    Comment

    • syedshaffee
      New Member
      • Jan 2012
      • 91

      #3
      TheSmileyCoder You ROck???

      Comment

      • TheSmileyCoder
        Recognized Expert Moderator Top Contributor
        • Dec 2009
        • 2322

        #4
        Thank you for those kind? words :)

        Comment

        Working...