iOS Question Copy a Map to another oen

Mike1970

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

Thanks!
 

Erel

Administrator
Staff member
Licensed User
The correct answer was posted above. For completeness, here is another option:
B4X:
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.
 
Top