What is vbCrLF VB Constant?

Posted on 2007-10-17
Last Modified: 2012-05-05
Which are the ASCII codes represented by vbCrLf constant used in Visual Basic programation language?
Question by:salvaterra
    LVL 48

    Expert Comment

    chr(10) + chr(13)
    LVL 38

    Expert Comment

    Actually I believe it's
    Chr(13) & Chr(10)

    13 - Carriage Return
    10 - Line Feed
    LVL 85

    Accepted Solution

    You can quickly figure it out for yourself in the immediate window:

    ? asc(mid(vbcrlf,1,1))
    ? asc(mid(vbcrlf,2,1))
    ? asc(vbcr)
    ? asc(vblf)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now