This is from B4A, how do I do it on B4i, there is no GetValuteAt
B4X:
For i=0 To CityMap.Size-1
City = CityMap.GetValueAt(i)
If City.CompareTo(Main.MYCity) = 0 Then
Main.MyCityCode = CityMap.GetKeyAt (i)
Log("Got City Code")
i = CityMap.Size - 1
End If
Next