Click to See Complete Forum and Search --> : Splitting a String


February 13th, 2000, 11:09 PM
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

Lothar Haensler
February 14th, 2000, 01:11 AM
dim a() as string
a = split("YourString", ",")
a(0) contains first word
a(1) contains second word...

requires VB 6.