Android Question How to use MsgBoxAsync with wait for?

LucaMs

Expert
Licensed User
I understand how to use the version 2 of MsgBoxAsync with Wait For:
B4X:
Msgbox2Async("Message", "Title", "Positive", "Cancel", "Negative", Bmp, False)
    Wait For MsgBox_Result (Result As Int)
    If Result = DialogResponse.NEGATIVE Then
but not how to use the simple MsgBoxAsync; this does not work:
B4X:
Wait For MsgboxAsync("Message", "Title")
 

LucaMs

Expert
Licensed User
Answer: same way:
B4X:
MsgboxAsync("Message", "Title")
Wait For MsgBox_Result (Result As Int)
The contextual help has deceived me, it seems that the "version 1" does not return a value:
upload_2017-12-5_14-55-28.png
 
Top