Hi everybody,
I am trying to get some data from a server with a DBRequest using the DBRequestManager library and wait for the answer to do something else in the same sub when the answer returns:
Is this possible? or do I have to use the JobDone Sub and do what I need in there??
Best Regards
I am trying to get some data from a server with a DBRequest using the DBRequestManager library and wait for the answer to do something else in the same sub when the answer returns:
B4X:
cmd.Initialize
cmd.Name = "update_usr"
cmd.Parameters = Array As Object(tempUsr)
Starter.reqManager.ExecuteCommand(cmd , "update_usr")
wait for JobDone
edit_field.text = "Result from server dbrequest"
Is this possible? or do I have to use the JobDone Sub and do what I need in there??
Best Regards