Send data to a server in a loop

ThePuiu

Active Member
Licensed User
Longtime User
Need to submit multiple records of a table to a SQL server. Transmission is made record with recored in a "for" loop. I need the best solution to do that. I try something like that:
B4X:
For i=0 to N
if READY
URL = "........"
HttpUtils.PostString("Job1", URL, "")
Else
Do While Not READY
Loop
End If
Next
........
Sub JobDone (Job As String)
....
READY = true
End Sub

but always send only the first record.

TY!
 
Top