Android Question doubt Wait for and CallSub

Dey

Active Member
Licensed User
Longtime User
hello everyone

B4XPage
eg.
Wait For (obj) Result (value as int)
must always be called by CallSubDelayed2(mCallBack,"Result")
or CallSub2(mCallBack,"Result") can also work
 

Sagenut

Expert
Licensed User
Longtime User
I don't understand exactly what you are asking.
Could you post some code you are trying and explain a bit further what should happen?
 
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

CallSub can work in some cases but it is safer to use CallSubDelayed. Otherwise your code can reach the CallSub call before reaching the Wait For call.
Please use [code]code here...[/code] tags when posting code.
true yes!..


thanks for the reply
 
Upvote 0
Top