Results 1 to 10 of 10

Thread: [enter] in a text using CHR

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    none
    Posts
    19

    Question

    What Im trying to do is enter in a text using vb.

    like

    text1.text = "Hello" & [Enter code here] & "World"

    it would turn out like this>

    Hello
    World

    <





  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I belive you can use {ENTER} or Chr$(13) both are considered "enter"

    Hope that helps,
    D!m
    Dim

  3. #3
    Guest
    no no no, use vbCrLf instead.

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Or just listen to Dreamlax.
    Dim

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    none
    Posts
    19

    Unhappy

    Could you also tell me how to put a list into a text.

    thanks

    text1.text = list??

    thanks

  6. #6
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    ummm...if your planing to have something like
    Text1.Text = "Item1|Item2|Item3"
    and if you have vb6 then you can probably use the Split():
    Split(Text1.Text, "|")

    I THINK that should work...give it ago unless someone post something better. (most likely will )
    Dim

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    none
    Posts
    19

    Unhappy

    I don't have VB6, And Im just trying to get the list into the text

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    none
    Posts
    19
    Thank you Dim and Dreamlax,

    I fegured out how to put the list into the text using the "Next i"

    I also used vbCrLf.

    Thank you very much for your help, even if you don't give a damn.


    Thank you for your time,

    Some Newbie

  9. #9
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Ofcourse we give a damn,
    That's what we're all here for.
    Gl with your programming,
    D!m
    Dim

  10. #10
    Guest
    Code:
    Text1.Text = "Hello World"
    hello = Mid(Text1, 1, 5)
    world = Mid(Text1, 6, 6)
    List1.additem (hello)
    List1.additem (world)
    This code will take the string "Hello World" apart and add the two pieces into a list box.

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