When we are creating a B4XPage a Root Object declared as B4XView and later in B4XPage_Created it says Root = Root1 and Root1 is also B4XView
Can someone explain what Root or Root1 do and why we declare Root and then we say Root = Root1?
Can someone explain what Root or Root1 do and why we declare Root and then we say Root = Root1?
B4X:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
End Sub
Public Sub Initialize
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub