>>It works with multiple delimiters too. See strtran(lcStr,"**",chr(13)) works just fine. I had strtran() in my original program. For a moment I thought about chrtran(), but almost immediatelly understood, it would not work for multiple delimiters.
>
>You're wrong, not the same way. I think you misunderstand what's meant by multiple delimiters.
lcstring = "text1,text2:text3;text4"
>? Words(lcstring, ",;:")
STRTRAN() won't do that.
Well, now I see.
Anyway, my function would not work for this case:
"text1,,text2,text3,text4,text5" - should return 5 elements, but will return 6.
FoxTools club - how can you accept new members? :)
If it's not broken, fix it until it is.
My Blog