CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Formatting Text

  1. #1

    Formatting Text

    What is the carriage return and line feed in Visual Basic?


  2. #2
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Formatting Text

    vbCr, vbLf, there is also vbCrLf

    ----------
    The @host is everywhere!
    ----------

  3. #3
    Join Date
    May 2001
    Location
    India, Bangalore
    Posts
    14

    Re: Formatting Text

    When you say Carriage Return it is as good as pressing Enter key in the keyboard. But when you say Line Feed you are just coming to the fresh line but you are not pressing enter key.

    To do this in VB we don't have to define them because these keys are come along with VB as built Constants. So if you want to use Carriage return you should use vbCr and when you want to use Line Feed you shoudl use vbLf.

    bpp


  4. #4

    Re: Formatting Text

    I hope you don't think that you are smart by knowing that... What you said about carriage return and line feed is common knowledge you know...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured