|
-
February 14th, 2000, 12:09 AM
#1
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
-
February 14th, 2000, 02:11 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|