You do not show your entire code but it should be the immutable "bug" of maps in B4i (maybe objective C feature) which the only way to face it is to recreate the map. Copy all keys with values to a new map and set this to the given map. You can do this with a function where you send as argument your map and what the function returns you set it to the same map. Of course you will create the function which will return a map. This happens when you recreate map or list of maps from a JSON.
Public Sub TestMap
Dim map1 As Map
map1.Initialize
'Add
map1.Put("vchUUID", "New")
Log(map1.As(JSON).ToString)
'Update
' map1.Remove("vchUUID")
map1.Put("vchUUID", "Update")
Log(map1.As(JSON).ToString)
End Sub
I'm happy to release a new version of B4i. This update brings the recent IDE performance improvements, new language features and more. IDE performance - several cases where the typing speed became slow were fixed. The speed difference in those cases is significant. IIf - Inline If, also called...
You do not show your entire code but it should be the immutable "bug" of maps in B4i (maybe objective C feature) which the only way to face it is to recreate the map. Copy all keys with values to a new map and set this to the given map. You can do this with a function where you send as argument your map and what the function returns you set it to the same map. Of course you will create the function which will return a map. This happens when you recreate map or list of maps from a JSON.
Public Sub TestMap
Dim map1 As Map
map1.Initialize
'Add
map1.Put("vchUUID", "New")
Log(map1.As(JSON).ToString)
'Update
' map1.Remove("vchUUID")
map1.Put("vchUUID", "Update")
Log(map1.As(JSON).ToString)
End Sub
I'm happy to release a new version of B4i. This update brings the recent IDE performance improvements, new language features and more. IDE performance - several cases where the typing speed became slow were fixed. The speed difference in those cases is significant. IIf - Inline If, also called...