Results 1 to 3 of 3

Thread: Making a NEWLINE in a Textbox? How do I do it?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    a
    Posts
    12

    Post

    I have some variables i would like to put in a textbox, for example when the user types in something to another textbox it stores a variable and when you click a button the text displays something like this...

    text1.text "This is a variable " & myvar

    I want to be able to put a newline tag or something in there like this...

    text1.text "This is my" & newline & "variable " & myvar

    something to that nature.. if anyone could help i would really appreciate it.. someone else told me that it can be done with the CHR() tag??? PLZ HELP

    ------------------
    - azpc

  2. #2
    Member
    Join Date
    Feb 1999
    Location
    ,Mo,USA
    Posts
    36

    Post

    Hey- First make sure the "multiline" property of your textbox = true, then its

    txt1.text = "This is a Variable" & vbcrlf & "variable" & myvar

    vbcrlf stands for carrige-return/line-feed (correct me if im wrong on this) and will make a new line in a text box.

    Thnx For Your Time,
    CarlosTheJackal

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    a
    Posts
    12

    Post

    Thanks a lot it worked...

    I didnt have the multiline on... i tried that before and thats why it didnt work. Thanx for helping

    ------------------
    - azpc

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