hatzisn Expert Licensed User Longtime User Aug 17, 2018 #1 Hi everyone, I would like to ask something which is not obvious to me. if we add the following code in a Activity_KeyPress event, B4X: If KeyCode = KeyCodes.KEYCODE_BACK Then If bHasToSave = True Then wait for(AskToSave) Complete (Result As Int) End If End If It shows a curly red line of an error in the editor and if I put my mouse on it, I get: "Resumables Subs return type must be resumable sub" How is it possible to overcome this? Thanks in advance.
Hi everyone, I would like to ask something which is not obvious to me. if we add the following code in a Activity_KeyPress event, B4X: If KeyCode = KeyCodes.KEYCODE_BACK Then If bHasToSave = True Then wait for(AskToSave) Complete (Result As Int) End If End If It shows a curly red line of an error in the editor and if I put my mouse on it, I get: "Resumables Subs return type must be resumable sub" How is it possible to overcome this? Thanks in advance.
hatzisn Expert Licensed User Longtime User Aug 17, 2018 #2 I found the solution in the following thread: https://www.b4x.com/android/forum/t...cated-and-async-dialogs-msgbox.79578/#content Upvote 0
I found the solution in the following thread: https://www.b4x.com/android/forum/t...cated-and-async-dialogs-msgbox.79578/#content