Link to home
Start Free TrialLog in
Avatar of InVisal
InVisal

asked on

Multi Split

i want make function SplitDelimiter

Syntax : SplitDelimter(strText,strDelimiter) 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.
Avatar of AzraSound
AzraSound
Flag of United States of America image

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
Oh, I see what you want...you want to use any one of those characters as a delimeter.  Sorry.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial