Total value = 1628375
1. when using this code return = 1628380, table trhinvfa content only 1 row
2. when using this code return = 1628375
why using the method one return wrong value (rounding )?
Thanks
1. when using this code return = 1628380, table trhinvfa content only 1 row
B4X:
Dim total As Long
total =Sql1.ExecQuerySingleResult("select total from trhinvfa")
2. when using this code return = 1628375
B4X:
Dim curs1 As Cursor
curs1 = Sql1.ExecQuery("select total from trhinvfa")
curs1.Position = 0
For i = 0 To curs1.RowCount - 1
total=curs1.GetLong("total")
Exit
Next
curs1.Close
why using the method one return wrong value (rounding )?
Thanks