Not sure if its a bug or not allowed?
B4X:
Sub KeyPressWorkaround(KeyCode As Int) As Boolean
Msgbox2Async("Test", "Test", "OK", "Cancel", "", Null, True)
Wait For Msgbox_Result(Result As Int)
End Sub
B4A version: 7.00 BETA #1
Parsing code. Error
Error parsing program.
Error description: Resumable subs cannot return a value.
Occurred on line: 116 (Main)
Sub KeyPressWorkaround(KeyCode As Int) As Boolean