Global Arrays?

Blitz3D Forums/Blitz3D Programming/Global Arrays?

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.

all arrays are global:

Const MAXFOOS = 10
Dim foo(MAXFOOS)

For i = 1 To MAXFOOS
	  foo(i) = Rnd(2,10)	
	Next


Print_foos()


Function print_foos()
	For i = 1 To MAXFOOS
	  Print foo(i)
	Next

End Function