Android Question How to close B4XMainPage

Sergey_New

Well-Known Member
Licensed User
Longtime User
Tell me how to close the application using btExit located on B4XMainPage in the same way as:
B4X: Copy
Private Sub B4XPage_CloseRequest As ResumableSub
    Dim sf As Object = xui.Msgbox2Async ("Close?", "Title", "Yes", "Cancel", "No", Null)
    Wait For (sf) Msgbox_Result (Result As Int)
    Log (Result)
    If Result = xui.DialogResponse_Positive Then
        Return True
    End If
    Return False
End Sub

Sub btExit_Click
    '???
End Sub
 
Thanks!
But I need to execute the same Msgbox2Async code, but write it twice.
 
Upvote 0
Back
Top