Array in functions and 'Step' Constant

Blitz3D Forums/Blitz3D Programming/Array in functions and 'Step' Constant

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.

You can pass Blitz arrays like this:
Local myArray[5]

myFunction(myArray)

Function myFunction(thisArray[5])
;blah
End Function


The only way to replicate a STEPped variable is to use a Repeat or While:
i% = 1
While i <= FINISH%
;blah
i = i + VAR%
Wend