Is there a way to use a Sub as an Object?
Actually I'm using some code like this:
I'm wondering if I could create a map like this
so it would be possible to select the right Sub only by a Get and calling it
Actually I'm using some code like this:
B4X:
Select index
Case 1
function_a
Case 2
function_b
Case 3
function_c
End Select
B4X:
Dim functionmap As Map = CreateMap( _
1: function_a, _
2: function_b, _
3: function_b _
)