PAssing varibles by reference

BlitzMax Forums/BlitzMax Beginners Area/PAssing varibles by reference

Shagwana(Posted 2004) [#1]
How to have this work!...
a=25

function changeit(a)
  a=512
  end function

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



Beaker(Posted 2004) [#2]
Change this line:
Function changeit(a Var)


Shagwana(Posted 2004) [#3]
Bingo thats it, rember seeing someplace, just couldt rember how and where!.