I have various items in a map some of them are ints.
I have found that if you compare 2 items as follows the results do not always work as expected.
Each of the following maps tm and chktm have a key value pair with a name of idTeam and a value of type int.
bit this always works
Is this expected behavior with maps?
I'm having to go through all my code and update comparisons.
Thanks
Andrew
I have found that if you compare 2 items as follows the results do not always work as expected.
Each of the following maps tm and chktm have a key value pair with a name of idTeam and a value of type int.
B4X:
if (tm.get("idTeam") = chktm.get("idTeam")) then
Log("Match found") ' Match is sometimes found but not always
end if
bit this always works
B4X:
private v1,v2 as int
v1 = tm.get("idTeam")
v2 = chktm.get("idTeam")
if (v1 = v2) then
Log("Match found") ' This always works as expected
end if
Is this expected behavior with maps?
I'm having to go through all my code and update comparisons.
Thanks
Andrew