Android Question Reenter on For Next after Jobdone

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Hi all,
I hope to be able to explain.
I have a loop For ..... Next.
Inside of loop I need to do a query to a Mysql (via httpjob)
Then I execute the instructions of Jobdone
How can I return to the next item of For Next?

This code is an example what i need:

B4X:
    For i = 0 To ........
             .....
             .....
             .....
    Dim jobx As HttpJob
    Qry="Select * FROM ......."
    jobx.Initialize("Job0", Me)
    jobx.PostString(ServerUrl, Qry)
        other code...
             .....
             .....

Next


Sub JobDone (Job As HttpJob)
    if Job.Success = True Then
        Select Job.JobName
        Case "Job0"
                 .....
                 .....
        End Select
    Else
        Log("Error: " & Job.ErrorMessage)
    End If
    Job.Release
End Sub

How can I return to "other code" after jobdone?
I need to use httpjob cause it is an old App ad I can't rewrite all....
Thanks
Marcom
 

Similar Threads

Top