Passing arrays as perameters to a function

Blitz3D Forums/Blitz3D Beginners Area/Passing arrays as perameters to a function

Well that depends on what u want to do. You could do something like this:

Dim var(3)


For t = 1 To 3
	value = 5
	var(t) = AssignVariable(variable,value)
Next 

For n = 1 To 3 
	Print var(n)
Next

WaitKey()

Function AssignVariable(variable,value)
	variable = value
	Return variable
End Function


And that would assign the variable using a function.