LucaMs Expert Licensed User Longtime User Jul 22, 2018 #21 LucaMs said: Nice and useful, thanks @LucaMs Click to expand... 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: Expand Collapse Copy ' 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.
LucaMs said: Nice and useful, thanks @LucaMs Click to expand... 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: Expand Collapse Copy ' 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.