display this comma delimited text ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron

    display this comma delimited text ??

    so if my textbox is named textbox1 and my listbox is named
    ltsdisplay, for the button that would make this all happen I would
    just need to:

    lstdisplay.item s.textbox1(deli mited.Split("," .ToCharArray()) )


    is that right? or no? I try this and I get an error...


    On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-



    - Hide quoted text -
    - Show quoted text -

    h...@gmx.atwrot e:
    "Tom Shelton" <tom_shel...@co mcast.netschrie b:
    How do I display delimited text on multiple lines in a listbox?
    For example in my textbox I have this:
    Joe Doe,123 Street,Mytown
    and In a listbox then I want to display:
    Joe Doe
    123 Street
    Mytown
    How would I step through that string and seperate the words by the
    comma?
    Cation - air code follows:
    listbox1.items. addrange(delimi ted.Split(",".T oCharArray()))
    ... ='delimited.Spl it(","c)'.
    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
  • Ron

    #2
    Re: display this comma delimited text ??

    OK I figured it out.
    lstdisplay.Item s.AddRange(Text Box1.Text.Split (",".ToCharArra y()))

    now is there a way for me to insert something before each line for
    example:

    FIRST NAME: then the delimited text
    LASTNAME: then the delimited text
    etc..

    ?

    On Feb 26, 10:09 pm, "Ron" <pts4...@yahoo. comwrote:
    so if my textbox is named textbox1 and my listbox is named
    ltsdisplay, for the button that would make this all happen I would
    just need to:
    >
    lstdisplay.item s.textbox1(deli mited.Split("," .ToCharArray()) )
    >
    is that right? or no? I try this and I get an error...
    >
    On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
    >
    - Hide quoted text -
    - Show quoted text -
    >
    >
    >
    h...@gmx.atwrot e:
    "Tom Shelton" <tom_shel...@co mcast.netschrie b:
    >How do I display delimited text on multiple lines in a listbox?
    >For example in my textbox I have this:
    >Joe Doe,123 Street,Mytown
    >and In a listbox then I want to display:
    >Joe Doe
    >123 Street
    >Mytown
    >How would I step through that string and seperate the words by the
    >comma?
    Cation - air code follows:
    listbox1.items. addrange(delimi ted.Split(",".T oCharArray()))
    ... ='delimited.Spl it(","c)'.
    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>- Hide quoted text -
    >
    - Show quoted text -

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: display this comma delimited text ??

      Ron,

      lstdisplay.Item s(0) = "FIRST NAME:" & lstdisplay.Item s(0)
      list.etc.

      Cor

      "Ron" <pts4560@yahoo. comschreef in bericht
      news:1172547754 .421800.28540@t 69g2000cwt.goog legroups.com...
      OK I figured it out.
      lstdisplay.Item s.AddRange(Text Box1.Text.Split (",".ToCharArra y()))
      >
      now is there a way for me to insert something before each line for
      example:
      >
      FIRST NAME: then the delimited text
      LASTNAME: then the delimited text
      etc..
      >
      ?
      >
      On Feb 26, 10:09 pm, "Ron" <pts4...@yahoo. comwrote:
      >so if my textbox is named textbox1 and my listbox is named
      >ltsdisplay, for the button that would make this all happen I would
      >just need to:
      >>
      >lstdisplay.ite ms.textbox1(del imited.Split(", ".ToCharArray() ))
      >>
      >is that right? or no? I try this and I get an error...
      >>
      >On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
      >>
      >- Hide quoted text -
      >- Show quoted text -
      >>
      >>
      >>
      >h...@gmx.atwro te:
      "Tom Shelton" <tom_shel...@co mcast.netschrie b:
      >How do I display delimited text on multiple lines in a listbox?
      >For example in my textbox I have this:
      >Joe Doe,123 Street,Mytown
      >and In a listbox then I want to display:
      >Joe Doe
      >123 Street
      >Mytown
      >How would I step through that string and seperate the words by the
      >comma?
      Cation - air code follows:
      listbox1.items. addrange(delimi ted.Split(",".T oCharArray()))
      ... ='delimited.Spl it(","c)'.
      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://dotnet.mvps.org/dotnet/faqs/>- Hide quoted text -
      >>
      >- Show quoted text -
      >
      >

      Comment

      Working...