PAssing varibles by reference

BlitzMax Forums/BlitzMax Beginners Area/PAssing varibles by reference

How to have this work!...
a=25

function changeit(a)
  a=512
  end function

'...
print a 'prints 25
changeit(a)
print a 'prints 512


Change this line:
Function changeit(a Var)

Bingo thats it, rember seeing someplace, just couldt rember how and where!.