Sample code:
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private listA As List
Private listB As List
End Sub
Sub AppStart (Form1 As Form, Args() As String)
'MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
'MainForm.Show
listA.Initialize
listB.Initialize
listA.AddAll(Array As String("item1", "item2"))
listB=listA
Log(listA)
Log(listB)
listB.Clear
Log(listA)
Log(listB)
'both lists are now empty, why is listA cleared?
End Sub
Same result with B4J 9.30 and B4A 11.50
Why should listA be cleared?