Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Split

  1. #1

    Thread Starter
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Resolved [RESOLVED] [2005] Split

    As far as i can see the string.Split method will only split on one character, i could use the Split() function carried from vb6 but isnt there a way using .net methods that split a string using more than one character as the delimiter.

    Thanks

    Casey.

  2. #2
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: [2005] Split

    Try using the .IndexOf method in conjuction with the Substring method.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  3. #3
    Lively Member
    Join Date
    Jun 2005
    Posts
    116

    Re: [2005] Split

    you can also try regexp.split

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Split

    I agree with cx323.

    If you need to split on a char, then use the string's split method, if you want to split on a string, then use the regex's split method, it will work just fine.

  5. #5

    Thread Starter
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: [2005] Split

    Thank you All

    Casey.

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