Android Question Add map value as its address?

rosippc64a

Active Member
Licensed User
Longtime User
Hi All,
this is my first encounter with this problem and I don't know it is a feature or what else?

B4X:
Type TCallist (sorpoz As Int, actDirMap As Map)
dim Callist as list
Callist.initialize
...           
Dim t As TCallist
t.Initialize
t.sorpoz=sorpoz
t.actDirmap=actDirMap
CallList.Add(t)
...
actDirmap = newactDirmap '<<<----------
At the signed row the value in the CallList last element the (sorpoz,actDirmap) will be (sorpoz,newactDirmap)! How can I preserve the original value (maybe clone the map)?
best regards
Steven
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…