Android Question "Wait for" not working in Return Subs

Scantech

Well-Known Member
Licensed User
Longtime User
Not sure if its a bug or not allowed?

Code: Copy
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
 

Similar Threads

Back
Top