Is this how I get the current page
Dim CurrentPageInfo As B4XPageInfo = B4XPages.GetManager.GetTopPage
The Popup Doc says GetManager probably shouldn't be used. But the B4XPageInfo has the Id and B4XPage of the current (top) page?
Is there a better way of doing this?
And how to call a page routine indirectly
If SubExists(CurrentPageInfo.B4XPage, "DoSomething") Then
Dim SomeValue As Int = CallSub(CurrentPageInfo.B4XPage, "DoSomething")
End If
Dim CurrentPageInfo As B4XPageInfo = B4XPages.GetManager.GetTopPage
The Popup Doc says GetManager probably shouldn't be used. But the B4XPageInfo has the Id and B4XPage of the current (top) page?
Is there a better way of doing this?
And how to call a page routine indirectly
If SubExists(CurrentPageInfo.B4XPage, "DoSomething") Then
Dim SomeValue As Int = CallSub(CurrentPageInfo.B4XPage, "DoSomething")
End If