passing an array to a function

BlitzMax Forums/BlitzMax Beginners Area/passing an array to a function

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Is this the best way to do it?

Global A_Array1:Float[ 100, 100 ]
Global A_Array2:Float[ 100, 100 ]

process_array( A_Array1 )

Print A_Array1[0,0]
Print A_Array2[0,0]

process_array( A_Array2)

Print A_Array1[0,0]
Print A_Array2[0,0]



End


Function process_array:Int( array:Float[,] )

	array[ 0, 0 ] = 123.456


End Function