can we do something like this in b4x?
LOGS should show:
thanx
EDIT: the logs does show what is written above but the btn_click is called from the someevent sub and not after the user actually clicks the button. i would like the someevent sub to continue ONLY if user has clicked the button. similar to Mesgbox2 approach.
B4X:
Private Sub someevent
Log("1")
Wait For (btn_Click) Complete(done As Boolean)
Log(done)
Log("3")
End Sub
Private Sub btn_Click As ResumableSub
Log("2")
Return True
End Sub
LOGS should show:
1
2
true
3
thanx
EDIT: the logs does show what is written above but the btn_click is called from the someevent sub and not after the user actually clicks the button. i would like the someevent sub to continue ONLY if user has clicked the button. similar to Mesgbox2 approach.