MyClass:
Direction And IterationDirection are 0. They should be 4. Surely a constant should be constant and not dependent on the object being initialized?
B4X:
Sub Class Globals
Public Const ITERATE_ASCENDING As Int = 2
Public Const ITERATE_DESCENDING As Int = 4
Private IterationDirection As Int
End Sub
Public Sub Initialize(Direction As Int)
IterationDirection = Direction
End Sub
B4X:
Dim AClass As MyClass
AClass.Initialize(AClass.ITERATE_DESCENDING)
Direction And IterationDirection are 0. They should be 4. Surely a constant should be constant and not dependent on the object being initialized?