this doesn't work. to demonstrate, I opened a brand new b4xpages project from b4a 11.0 and changed the button click event fromErel says: Call B4XPages.ClosePage(Me) instead of Activity.Finish.
B4X:
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
B4X:
Private Sub Button1_Click
wait for (xui.MsgboxAsync("Hello world!", "B4X")) complete (o As Object)
B4XPages.ClosePage(Me)
End Sub
I've been trying to find a way to close a b4xpages app so it can be restarted by the user to reload all the data from scratch. A more elegant solution would be to restart a page, but as far as I can tell, only an activity can be restarted, and I can't see how to do that from within a b4xpage. thanks in advance!