this is my class
Sub Class_Globals 'Name Oggetto
Public X As Int
Public Y As Int
Public Altezza As Int
Public Larghezza As Int
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize (ax As Int, aY As Int, aAltezza As Int, aLarghezza As Int)
X=ax
Y=aY
Altezza = aAltezza
Larghezza = aLarghezza
End Sub
this is my problem solution:
Dim a As List
Dim b,d As Oggetto
Dim Label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Prova")
a.Initialize
b.Initialize(0,0,100,100)
a.Add(b)
d = a.Get(0)
d.Altezza = 16
a.Set(0,d)
I used an object 'd' as a support and then I replaced the object with new properties on the list.
In this way, however, the original object has been destroyed
is not a good solution
there are better solutions?