I have an app that upload several records to a server.
After it upload the data, it make some checks and I can get new data from the server.
Now I made this way (an example of my logical):
How I can make this way?:
I tried, but the sub "DownloadData" starts before the sub "SendData" has completed.
Thanks in advance for any help.
After it upload the data, it make some checks and I can get new data from the server.
Now I made this way (an example of my logical):
B4X:
Sub StartProcess
SendData
End Sub
Sub SendData
For i = 0 to data.size
SendPut (...)
Next
DownloadData ' <-- When the for terminate call the sub DownloadData
End Sub
Sub DownloadData
SendRequest (...)
End Sub
How I can make this way?:
B4X:
Sub StartProcess
SendData
' when the sub "SendData" terminate...
DownloadData ' <-- starts the sub "DownloadData"
End Sub
Thanks in advance for any help.