[Gambas-user] Trying to update table in SQLite

rocko sunblaster5 at ...626...
Tue Aug 14 23:04:24 CEST 2012


I'm trying to send data back to a table after retrieving it and doing
some math to it.
I tried doing a table update like>> table.Update
But that doesn't seem to work.

CODE:
FNew.rTable = FMain.$hConn.Create("inventory") 
  sResult = $hConn.Find("inventory", id = &1, ID)
           For Each sResult
             $date1 = sResult!endDate
             $date2 = Now
             Print $date2
             $daysLeft = sResult!daysLeft
             $daysLeft = DateDiff($date2, $date1, gb.Day)
             Print $daysLeft
             FNew.rTable.Update

I need to update the "daysLeft" field in the "inventory" table.





More information about the User mailing list