Here is the simplest example of what I want to do:
Sub Globals
Type AType(X As Int,Y As Int)
Dim A As AType
Dim ALst As List
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("MyLayout")
A.Initialize
ALst.Initialize
A.X=1: A.Y=2
ALst.Add(A)
A.X=3: A.Y=4
ALst.Add(A)
End Sub
When run,
the debugger shows ALst as (ArrayList)[IsInitialized=true,X=3,Y=4],[IsInitialized=true,X=3,Y=4]].
I want it to show ALst as (ArrayList)[IsInitialized=true,X=1,Y=2],[IsInitialized=true,X=3,Y=4]].
How can I make this happen?
(Arrays work the same way.)
Sub Globals
Type AType(X As Int,Y As Int)
Dim A As AType
Dim ALst As List
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("MyLayout")
A.Initialize
ALst.Initialize
A.X=1: A.Y=2
ALst.Add(A)
A.X=3: A.Y=4
ALst.Add(A)
End Sub
When run,
the debugger shows ALst as (ArrayList)[IsInitialized=true,X=3,Y=4],[IsInitialized=true,X=3,Y=4]].
I want it to show ALst as (ArrayList)[IsInitialized=true,X=1,Y=2],[IsInitialized=true,X=3,Y=4]].
How can I make this happen?
(Arrays work the same way.)