[Wish] Enum type

LucaMs

Expert
Licensed User
Longtime User
Nice and useful, thanks @LucaMs :D
My simple tool attached to this thread is no longer so useful because, shortly thereafter, constants were added to B4A (to B4X).

So the "get" routines created by the tool (and the private member variables) are no more needed; today the tool should only generate code like this:
B4X:
' EnumStates Class
Sub Class_Globals
    Public Const FREE As Int = 1
    Public Const BUSY As Int = 2
    Public Const UNKNOWN As Int = 3
    ' ...
End Sub

and you can write so simple classes quickly, without the need of tools.
 
Top