line break


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: line break

  1. #1
    Jens De Temmerman Guest

    line break


    is there a line break in vb like <br> in HTML?
    example:
    text4.seltext = text1.text 'here a line break

    how do i do this?
    I allready tried with chr(13) but i get something like a pipe-chr(|)


  2. #2
    Veign Guest

    Re: line break

    Try either: vbCrLf or vbNewLine

    --
    Veign
    www.veign.com
    NEW ActiveX Control - Jeweled Style Buttons
    www.veign.com/download_activex.html#jwldbutn
    Code Samples & Sample Projects
    http://www.veign.com/information/app.../info_app.html
    Submit Your Best Code (you keep the rights)
    http://www.veign.com/information/app...de_submit.html
    ---------
    "Jens De Temmerman" <the__evil__one@hotmail.com> wrote in message
    news:3d415e19$1@10.1.10.29...
    >
    > is there a line break in vb like <br> in HTML?
    > example:
    > text4.seltext = text1.text 'here a line break
    >
    > how do i do this?
    > I allready tried with chr(13) but i get something like a pipe-chr(|)
    >




  3. #3
    Rick Rothstein Guest

    Re: line break

    A "line break" is a carriage return character followed by a line feed
    character, so you can do it with Chr$ functions. In addition, vb has two
    predefined constants which do the same thing. Hence, anyone of the
    following will work

    Text4.SelText = Text1.Text & Chr$(13) & Chr$(10)

    Text4.SelText = Text1.Text & vbCrLf

    Text4.SelText = Text1.Text & vbNewLine

    By the way, don't forget to set the MultiLine property of the TextBox
    (Text4 in this case) to True.

    Rick


    "Jens De Temmerman" <the__evil__one@hotmail.com> wrote in message
    news:3d415e19$1@10.1.10.29...
    >
    > is there a line break in vb like <br> in HTML?
    > example:
    > text4.seltext = text1.text 'here a line break
    >
    > how do i do this?
    > I allready tried with chr(13) but i get something like a pipe-chr(|)
    >



  4. #4
    Veign Guest

    Re: line break

    Also, if you placing into a textbox make sure the MultiLine property is set
    to True

    --
    Veign
    www.veign.com
    NEW ActiveX Control - Jeweled Style Buttons
    www.veign.com/download_activex.html#jwldbutn
    Code Samples & Sample Projects
    http://www.veign.com/information/app.../info_app.html
    Submit Your Best Code (you keep the rights)
    http://www.veign.com/information/app...de_submit.html
    ---------
    "Jens De Temmerman" <the__evil__one@hotmail.com> wrote in message
    news:3d415e19$1@10.1.10.29...
    >
    > is there a line break in vb like <br> in HTML?
    > example:
    > text4.seltext = text1.text 'here a line break
    >
    > how do i do this?
    > I allready tried with chr(13) but i get something like a pipe-chr(|)
    >




  5. #5
    Leigh Pointer Guest

    Re: line break

    As show already there are a few choices. I would suggest:
    vbNewLine
    The vbNewLine will equal Chr(13) & Chr(10) or Chr(10) it is a
    Platform-specific newline character; whatever is appropriate for the
    platform.

    Regards."Jens De Temmerman" <the__evil__one@hotmail.com> wrote in message
    news:3d415e19$1@10.1.10.29...
    >
    > is there a line break in vb like <br> in HTML?
    > example:
    > text4.seltext = text1.text 'here a line break
    >
    > how do i do this?
    > I allready tried with chr(13) but i get something like a pipe-chr(|)
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center