here an example:
Code: Select all
Function myfunc()
DebugPrint(n)
EndFunction
For n = 1 To 3
myfunc()
Next
As I was wondering about this, this could actually be somewhat handy way to make code cleaner in some cases, like:
Code: Select all
for n = 1 to 100
DrawEnemy()
next
Code: Select all
for n=1 to 100
DrawEnemy(Enemy[n].x, Enemy[n].y, Enemy[n].Weapon, Enemy[n].status,Enemy[n].whatevermore)
next