Super.Global

BlitzMax Forums/BlitzMax Beginners Area/Super.Global

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.

I don't understand.
Why define them in the function if they're to be global to the type?
If you define them in the type you can treat them as global in the program.. sort of
e.g.
Type ttest
	Global x:Int = 5
	Function test()
		x = 10
		Print x
	End Function
End Type
Print ttest.x
ttest.test
Print ttest.x

but I might have missed something.