iOS Question Copy a Map to another oen

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi in B4i how can I copy a map into another?
Given the fact the function "GetKeyAt" and "GetValueAt" doens't exists?

Thanks!
 
The correct answer was posted above. For completeness, here is another option:
Code:
Sub CopyObject(o As Object) As Object
   Dim s As B4XSerializator
   Return s.ConvertBytesToObject(s.ConvertObjectToBytes(o))
End Sub
It will work as long as the keys and values are types supported by B4XSerializator.
 
Upvote 0
Back
Top