B4XPage
eg.
Wait For (obj) Result (value as int)
must always be called by CallSubDelayed2(mCallBack,"Result")
or CallSub2(mCallBack,"Result") can also work
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.
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.