iOS Question Adding a List to a Map

narek adonts

Well-Known Member
Licensed User
Longtime User
Hi

I am adding a list to a map. I am adding the same list but with the content changed to a map with different keys but at the end I am getting the same List for all the Keys in the Map.
Any suggestions?

Narek
 

narek adonts

Well-Known Member
Licensed User
Longtime User
I tried but without success.


I have a global variabale - curAttributes which I am frequently cleaning. Before Cleaning I am trying to save it in map like this

B4X:
Public Sub SaveAttributes
Dim tmpAtt As TextAttributes=ActiveTXT.SaveTextAttributes
curAttributes.Add(tmpAtt)

Dim tmpattlist As List
tmpattlist.Initialize2(curAttributes)
mapID.Put(curImageID.tmpattlist)

End Sub


NO SUCCESS.

when retrieving a List from any Key I am always getting the latest List.

Narek
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…