CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Splitting a String

    Hi Friends,
    I kishore, new to VB. I have a string which has few words seperated by
    comma(,). Can anyone please tell me how to extract the words independtly ?

    Ex:-- if string Name contains "Kishore,Kumar" then I want to retrieve "Kishore" and "Kumar" saperately.

    Thanks in advance.

    bye
    -Kishore


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Splitting a String

    dim a() as string
    a = split("YourString", ",")
    a(0) contains first word
    a(1) contains second word...

    requires VB 6.


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

Featured