Modifying a global in a function

BlitzMax Forums/BlitzMax Programming/Modifying a global in a function

Lol, you guys make me laugh!! :)

Of course, I know how a global works.


guess what he's trying to do is to have any kind of variable be passed and be modified in its original form, regardless of whether it is global or local or otherwise, and perhaps just defined it as a Global in his example out of habit or whatever, and maybe has been accustomed to having to use globals to achieve this result due to not knowing about Var



Exactly :)

to quote myself;


Couldn't think of an easy way to word the question!



I hadn't heard of Var before today, though I knew what I wanted to do was achievable. I didn't want to have to pass a pointer to the function! :)