I am using the class in an array declared as global.
B4X:
Sub Process_GlobalsPrivate fx As JFXPrivate MainForm As FormDim ct(4) As ClassTestEndSub
Sub AppStart(Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
ct(0).Initialize
'ct(0).destroy or reinitialize'ct (1), ct (2) and ct (3) must remain intact.EndSub
I thought of creating a temporary array, declaring the original array again, and copying the items from the temporary array I want to keep to it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.