Hi all,
within a initialize of a class I run three resumable subs: "Download1", "Download2" and "Download3":
I need these three subroutines to be executed in the exact sequence in which they are written.
So Download2 will be executed only after Download1 has finished its execution and so on.
How to do this ?
Thanks in advance for your help.
Luca.
within a initialize of a class I run three resumable subs: "Download1", "Download2" and "Download3":
B4X:
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
Download1 'Resumable Sub1
Download2 'Resumable Sub2
Download3 'Resumable Sub3
End Sub
Sub Download1
Wait For (GetIDs (ID1, user, psw)) Complete (result1 As List)
'code...
End Sub
Sub Download2
Wait For (GetIDs (ID2, user, psw)) Complete (result2As List)
'code...
End Sub
Sub Download3
Wait For (GetIDs (ID3, user, psw)) Complete (result3 As List)
'code...
End Sub
I need these three subroutines to be executed in the exact sequence in which they are written.
So Download2 will be executed only after Download1 has finished its execution and so on.
How to do this ?
Thanks in advance for your help.
Luca.