InVisal
asked on
Multi Split
i want make function SplitDelimiter
Syntax : SplitDelimter(strText,strD elimiter) reture with array
example a = SplitDelimter("hello you:can you?me"," :?")
reture array like this
a(0) = "hello"
a(1) = "you"
a(2) = "can"
a(3) = "you"
a(4) = "me"
how can i do this function can anyone give me the source code.
please dont use For i = 1 to Len(strText) ... Next i
because it make function slow.
thanks you.
Syntax : SplitDelimter(strText,strD
example a = SplitDelimter("hello you:can you?me"," :?")
reture array like this
a(0) = "hello"
a(1) = "you"
a(2) = "can"
a(3) = "you"
a(4) = "me"
how can i do this function can anyone give me the source code.
please dont use For i = 1 to Len(strText) ... Next i
because it make function slow.
thanks you.
If you are using VB6 it has this built in already. Its called the Split function.
If using VB5 or previous, use this:
http://www.devx.com/vb2themax/Tip/19090
http://www.devx.com/vb2themax/Tip/19090
Oh, I see what you want...you want to use any one of those characters as a delimeter. Sorry.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.