Multiple Function Returns?
Blitz3D Forums/Blitz3D Beginners Area/Multiple Function Returns?
| ||
I was trying to devise a Function that would splice a string that contained Comma-Separated values. the problem being that the Return function only returns one variable, when I really need at least two. Here's my prog so far. I need to return the value of WHAT_TO_DO_WITH_THIS$ as well as RV$ Anyone got any tips? |
| ||
This might help... I know it doesn't answer your question, but it might solve your problem. http://www.blitzbasic.com/codearcs/codearcs.php?code=1204 |
| ||
Heh Thatnks, Rob - a link to kust the Mid command in the manual would've done! This command is a godsend and actually, that example shows everything I require! Thanks. I'm just getting used to using Functions to make my coding neater and more optimised. My only prior experience of programming was with Spectrums and the FN command on that was lmiited just to mathematic routines, so it's quite a step, but, like Types, once you get the hang of them, they're invaluable! |