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.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user