HI, All
I have an old B4A big project with lots of loops using Cursors from SQLite db.
All loops are rather complex, big, like:
Now suddently i have to make porting of that old project to B4J.
How to migrate to ResultSet simpler and errorless ?
I have an old B4A big project with lots of loops using Cursors from SQLite db.
All loops are rather complex, big, like:
B4X:
Dim c As Cursor = Starter.SQL.ExecQuery("SELECT * FROM .....")
If c.RowCount = 0 Then 'sometimes such condition is the must
Return
End If
For i = 0 To c.RowCount - 1
c.Position = i
Dim var001 As String = c.GetString("var001")
.....
'lots of codes with many VARxxx
Next
'sometimes some extra code here after the loop, so pre-checking RowCount sometimes is strongly required
Now suddently i have to make porting of that old project to B4J.
How to migrate to ResultSet simpler and errorless ?
Last edited: