what the best way to use Wait for Msgbox with out getting a resumable sub error?
B4X:
'some code before msgbox'
Dim message, title As String
Dim result As Int
title = "Title"
message = "Message"
Dim icon As Bitmap = LoadBitmap(File.DirAssets, "Question.png")
Msgbox2Async(message, title, "Yes", "No", "", icon, False)
Wait For Msgbox_Result (result As Int)
If result = DialogResponse.POSITIVE Then
If File.Delete(Main.strMMDirLoc, FileName) = True Then
bWriteFile = True
Else
bWriteFile = False
End If
End If
'other code to execute here'