Hi, All, @Erel
i have this code ( as example )
if I run the first
if I run the second
Any Bug or my wrong ??
i have this code ( as example )
B4X:
Dim makemap As Map
makemap.Initialize
For i = 0 To 5
makemap.Put($"${i}"$,$"A-${i}"$)
'makemap.Put(i,$"A-${i}"$)
Next
Log(makemap)
Log(makemap.GetKeyAt(2))
Log(makemap.GetValueAt(2))
Log(makemap.Get(2))
Log("******************")
if I run the first
I have the following result:makemap.Put($"${i}"$,$"A-${i}"$)
Waiting for debugger to connect...
Program started.
(MyMap) {0=A-0, 1=A-1, 2=A-2, 3=A-3, 4=A-4, 5=A-5}
2
A-2
null
******************
if I run the second
I have the following resultmakemap.Put(i,$"A-${i}"$)
Waiting for debugger to connect...
Program started.
(MyMap) {0=A-0, 1=A-1, 2=A-2, 3=A-3, 4=A-4, 5=A-5}
2
A-2
A-2
******************
Any Bug or my wrong ??
Last edited: