Multiple Returns?

BlitzMax Forums/BlitzMax Programming/Multiple Returns?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks!

I have been returning Types, Lists and Arrays. The Var command was what I was looking for. In some cases that is more clean.

@ Beaker, did you know you can do it like this directly?
For Local Thing = EachIn LocationA()
    Print Thing
Next

Function LocationA:Int[]()
     Return [3,4,5,6,7,8]
End Function


Where can I find the var command in the reference?