New item in the Code Archives.

BlitzPlus Forums/BlitzPlus Programming/New item in the Code Archives.

I just added a new function to the Code Archives to split a comma separated string in to it's component parts. Check it out.
http://www.blitzbasic.com/codearcs/codearcs.php?code=2123

Useful but somewhat limited by the fact that you can only split by "commas".

There are other entries in the code archives that do something similar. I know because I wrote one too!

http://www.blitzbasic.com/codearcs/codearcs.php?code=1922

very simple to add an additional option in the function to split by whatever character you would like. or simply hard code it to your preference.

Just looked at your code.. not saying your is bad.. but considering the amount of code in your function compared to mine. I would have to say mine is by far a better choice. And to make mine equal to yours in using different delimiters all I would need is an additional variable.

My point is that it's a function that pops up every few years, but nobody "gets it" until they write one of their own.

lol.. I didn't even think of looking to see if there was one already before I made mine. Mine was designed with my own spec's in mind, thats why I didn't have the changeable separator checking.