Globals

BlitzMax Forums/BlitzMax Beginners Area/Globals

The global is bound to the type itself not to an instance. So you can access it either by using the type name itsself or by using any instance variable. It doesn't even matter whether the instance variable has been initialised of if it is Null so these all are valid ways to access "MyGlobal":
Print MyType.MyGlobal
a:MyType = New MyType ; Print a.MyGlobal
b:MyType = Null ; Print b.MyGlobal
(Assuming that your MyType-type contains a global MyGlobal variable...)