By Reference

BlitzMax Forums/BlitzMax Programming/By Reference

Use the Var keyword in the parameter section of the Function declaration.
Local a:Int = 10
Doubler a
Print a

Function Doubler(a:Int Var)
  a:* 2
End Function