Hi, guys --
I need to add a fragment, which sends information to webserver and waits results, in one subroutine, let's name it 'DD'.
A problem is that I have enough long chains. Let's say subroutine AA calls subroutine BB, which calls 'CC', which calls 'DD'.
AA, BB, CC, DD previously was not resumeable. As I understand, I can do
It's not comfortable and I am afraid to lose some chains.
Somebody knows more simple way ?
I need to add a fragment, which sends information to webserver and waits results, in one subroutine, let's name it 'DD'.
A problem is that I have enough long chains. Let's say subroutine AA calls subroutine BB, which calls 'CC', which calls 'DD'.
AA, BB, CC, DD previously was not resumeable. As I understand, I can do
B4X:
Sub AA
BB
Wait For eventBB
End Sub
Sub BB
CC
Wait For eventCC
CallSubDelayed (Me, "eventBB")
End Sub
Sub CC
DD
Wait For eventDD
CallSubDelayed (Me, "eventCC")
End Sub
Sub DD
Msgbox2 ("Msg2", "Question", Title, Array ("Yes", "No"))
Wait For Msg2_Click (stringButtonText As String)
CallSubDelayed (Me, "eventDD")
End Sub
It's not comfortable and I am afraid to lose some chains.
Somebody knows more simple way ?