"ntword" alternative (parse function from NetMasters PSock unit)
Posted on 2002-07-17
I need a parse function that does the exact same thing as NetMaster's Nthword function as I don't use NetMaster's anymore, but still need this function. It's usage is like:
nthword(string, delimiter, # of delimiter from beginning of text)
s := string (some kind of text like "2,3,2,3,5,1,2")
nthword(s, ',', 4);
This will return the text between the 4th and 5th Comma from the beginning. So the the result would be 5.
Appreciate any help.