Can I pass a variable by reference to a function? Docs don't say but it seems to be by value only.
By Reference
BlitzMax Forums/BlitzMax Programming/By Reference Thank you
RAFF
RAFF
Also, note that objects are always passed by reference.
that is weird when I tested it, it treated it by value
you can pass objects by value or by refrence, and it does make a difference
Type tguy Field name$ End Type Local joe:tguy Global bob:tguy joe=New tguy joe.name="joe" bob=New tguy bob.name="bob" change(joe) Print joe.name change2(joe) Print joe.name Function change(guy:tguy) 'does nothing guy=bob End Function Function change2(guy:tguy Var) guy=bob End Function