enum fake out

BlitzMax Forums/BlitzMax Programming/enum fake out

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 came up with, what I think, is the best alternative for proper enum vars in BlitzMax. Yes, you still have to number everything by hand, but at least you can use them as you would in a .NET language...


Type EStatus

	Global Open		= 0
	Global Closed		= 1
	Global Waiting	= 2

End Type

MyStatus = EStatus.Closed
Print MyStatus
WaitKey