This code doesn't work:
This works:
I'm still a newbie and maybe I shouldn't call it bug... if you have other explanation please let me know.
B4X:
dim m as map
dim i,Val as int
m=File.ReadMap(File.DirInternal,"myfile.ini")
Val=5
for i=0 to m.size-1
if m.ContainsKey(Val)=false then '(Always return false)
....
end if
next
This works:
B4X:
dim m as map
dim i,Val as int
dim TempVal as string
m=File.ReadMap(File.DirInternal,"myfile.ini")
Val=5
TempVal=Val
for i=0 to m.size-1
if m.ContainsKey(TempVal)=false then 'Works correctly
....
end if
next
I'm still a newbie and maybe I shouldn't call it bug... if you have other explanation please let me know.