Results 1 to 3 of 3

Thread: string manipulation

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    string manipulation

    i have a textbox that contains words and every word is separated by a ; my problem is how would i separately input them to the other textboxes?



    here is the concept.

    textbox1 contains "apple;orange;pineapple;grapes"
    textbox1 will not have the same contents.

    on the click of a button

    textbox2 will contain apple
    textbox3 will contain orange
    textbox4 will contain pineapple
    textbox5 will contain grapes

  2. #2

  3. #3
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: string manipulation

    Use
    Code:
    MyString.Split(";"c)
    to turn it into an array and assign the other textboxes each element.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

Tags for this Thread

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