New item in the Code Archives.

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

UUICEO(Posted 2007) [#1]
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


Andy_A(Posted 2007) [#2]
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


UUICEO(Posted 2007) [#3]
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.


UUICEO(Posted 2007) [#4]
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.


Andy_A(Posted 2007) [#5]
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.


UUICEO(Posted 2007) [#6]
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.