Modifying a global in a function

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi All,

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

What I need to do is as follows:

Is it possible in max without having to give the function a pointer?

global A:int=100

test(a)

Print A

Function test(inp:Int)
	inp=10
End Function