Results 1 to 3 of 3

Thread: text boxes and getting it to go to the next line!

  1. #1

    Thread Starter
    Member bcx7's Avatar
    Join Date
    May 1999
    Location
    Adelaide, South Australia, Australia
    Posts
    46

    Angry

    i cannot get a enter/nextline to go into a textbox during runtime.

    multiline property is on and in design mode i can put enters but i cant in runtime.

    these are the things that i've tried:
    text1.text = "line1" + chr(13) + "line2"
    text1.text = "line1" + chr(10) + "line2"
    text1.text = "line1" + chr(0) + "line2"
    text1.text = "line1" & chr(13) & "line2"
    text1.text = "line1" & chr(10) & "line2"
    text1.text = "line1" & chr(0) & "line2"

    text1.text = "line1"
    text1.text = text1.text + "line2"

    text1.text = "line1"
    text1.text = text1.text & "line2"

    it always comes out like this (in the textbox)

    line1line2


    no matter what i try i cant get it to work

    remember multiline is on.



    help me please!!!!!!!!!

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You must have got this wrong somewhere, chr(13) & chr(10) is carriage return, the vbcrlf constant you need to use.
    Code:
    text1.text= "line1" & vbcrlf & "line2"
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Member bcx7's Avatar
    Join Date
    May 1999
    Location
    Adelaide, South Australia, Australia
    Posts
    46
    thank you very much, kedaman!

    this has been bugging me for a long time!


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