Is this the correct way to pass array to function?
BlitzMax Forums/BlitzMax Beginners Area/Is this the correct way to pass array to function?
| ||
Hi, I'm only reading from the array. And I will have multiple arrays to process. Global A_Array:Float[1024] Global B_Array:Float[1024] Global C_Array:Float[1024] my_function( A_Array:Float ) function process( array:Float[] ) end function |
| ||
Strict Global myarray:Float[1024] Function process(array:Float[]) For Local i = 0 Until array.length Print array[i] Next End Function process(myarray) |
| ||
Thanks |