Android Question Result from two procedures (Solved)

Sergey_New

Well-Known Member
Licensed User
Longtime User
Two procedures f1 and f2 are launched from Activity, returning true or false.
B4X:
Dim a As Boolean=f1(x)
Dim b As Boolean=f2(y)
Each procedure may be completed before the other. I need to get the result when both procedures return true.
How can I check this?
 

DonManfred

Expert
Licensed User
Longtime User
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Check this tutorial:
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User

DonManfred, aeric

Thank you!
I read these manuals, but unfortunately I couldn’t do it.
If possible, please help me with the code.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Maybe this can help you

 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Maybe this can help you

I was looking for this. Thanks.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
josejad, thanks again for the link!
And thanks to Erel for the solution, everything worked out!
 
Upvote 0
Top