splitting arrays

M

Mike D

I have a string that looks like this: a|b|c|d%e|f| ...

I split once on "%"

ar1 = Split(Mystring, "%")

then when I try and split the ar1 by

ar2 = Split(ar1, "|")

I get error '800a000d' Type mismatch

I have tried
ar2 = Split(Cstr(ar1), "|")

How can I split this string?

Thanks
Mike
 
B

Bob Lehmann

ar2 = split(ar1(0), "|")

You will probably want to loop through ar1 instead of writing each one out
though.

Bob Lehmann
 
M

Mike D

Thanks. It's been a hard Monday.

Mike

Bob Lehmann said:
ar2 = split(ar1(0), "|")

You will probably want to loop through ar1 instead of writing each one out
though.

Bob Lehmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top