Last night
I was about to write that the problem could be solved by changing the type of the variable Vble1 to object (also thinking to a custom type).
Well, I did not do it because, before writing nonsense, I wanted to try and, surprisingly, it (object) does not work.
So now I have tried with a custom type and this works instead.
Just a little question: why? ?
Using an object:
Sub TestObject
Dim Vble1 As Object = 0
Dim Mapa As Map
Mapa.Initialize
Mapa.Put("Vble1", Vble1)
Vble1 = 34
Log(Mapa.Get("Vble1"))
'log: 0
End Sub
Using a custom type:
Type tMyVar(Value As Int)
Sub TestType
Dim Vble1 As tMyVar
Vble1.Initialize
Dim Mapa As Map
Mapa.Initialize
Mapa.Put("Vble1", Vble1)
Vble1.Value = 34
Dim V2 As tMyVar = Mapa.Get("Vble1")
Log(V2.Value)
' log: 34
End Sub