Hi all.
I create a list with some data.
After that I create a map and I put the list in. I log the map and I see the list and it's data. Fine
I clear the list and log again the map and the list inside the map is empty.
I need to keep data list in map even if I delete the list
I create a list with some data.
After that I create a map and I put the list in. I log the map and I see the list and it's data. Fine
I clear the list and log again the map and the list inside the map is empty.
I need to keep data list in map even if I delete the list
B4X:
Sub Sub1
list1.Add(1)
list1.Add(2)
list1.Add(3)
list1.Add(4)
map1.Put(1, list1)
Log(map1) 'this show : (MyMap) {1=[1, 2, 3, 4]}
list1.Clear
Log(map1) 'this show : (MyMap) {1=[]}
End Sub