Hi all
i created a Sub that authenticates on remote server through HTTPJOB. It is something like this
where FlagAuth is set into Job.Done routine.
The problem is that the program don't wait for "Auth.PostString" to finish and it continues the execution and the "Sub auth" returns "False" instead of "True" even it is authenticated correctly
How can i wait the execution of the Auth.Postring and then go ahead with the rest of the code?
Thanks in advance
i created a Sub that authenticates on remote server through HTTPJOB. It is something like this
B4X:
Sub auth
FlagAuth=False
Auth.PostString("http://xxx.xxx.xxx.xxx/auth.php", "user=" & User & "&pass=" & Pass)
If FlagAuth=True Then
Return True
Else
Return False
End If
End sub
where FlagAuth is set into Job.Done routine.
The problem is that the program don't wait for "Auth.PostString" to finish and it continues the execution and the "Sub auth" returns "False" instead of "True" even it is authenticated correctly
How can i wait the execution of the Auth.Postring and then go ahead with the rest of the code?
Thanks in advance
Last edited: