I need to retrieve the records from a db sqlite and pass them to a web service through job.PostString.
only the last record is passed to the web service, also If cursor1.RowCount> 0. where am I wrong? how can i pass all the records?
only the last record is passed to the web service, also If cursor1.RowCount> 0. where am I wrong? how can i pass all the records?
B4X:
Job.Initialize("Job", Me)
cursor = SQL1.ExecQuery("SELECT * FROM nome")
If cursor.RowCount > 0 Then
For i = 0 To cursor.RowCount - 1
cursor.Position = i
Job.PostString(WS,"nome="&cursor.GetString("nome")&" ")
Next