Jump to content
Sign in to follow this  
MiserableLife

Some questions about StringSplit()

Recommended Posts

somdcomputerguy

This is how I see it, which means it's probably wrong..

Let's assume the delimiter string is ,.?. With flag 0, any of those 3 delimiter characters will be used to SplitTheString. With flag 1, all three of those characters are needed.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
MiserableLife

But when I run the test code, my result was:

abcd
abcd
'0'

What happened to the , in the second line? I thought the result would be:

abcd
a,b,c,d
'0'

Share this post


Link to post
Share on other sites
somdcomputerguy

I think with only one delimiter character, flags 0 and 1 do the same thing.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
MiserableLife

Could you explain what "needed" means ... I still don't quite understand. Thanks.

Share this post


Link to post
Share on other sites
MiserableLife

@@" Crystal clear. Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×