@vovasoft
Thanks!!
I have read this tutorial. It all makes sense. Inserting a record using table values seems to work fine as it is explained the link you sent. I had previously read that and accomplished inserting the record successfully when creating the database table and record.
Except I do not want to insert another ‘record’. I want to UPDATE the one existing record I have in the database table. This record holds the game data fields used in my app. When the app is in process some of these variables (credits, various state flags) change, and then on exit of the app, I want to update & save that database record by assigning these variables to the appropriate fields in ‘that’ database table record.
Nothing in this tutorial from the link or any other tutorial I have seen on the web shows when using the UPDATE command in SQL lite, how to assign a ‘variable’ to any of those fields for a record in the database. I would think this is such a common action there would have to be many examples out there and yet I see none.
Every example I have seen including the one for the link you provided when it is explaining UPDATE of a table record, it only shows assigning literals (strings or numbers). How do I UPDATE a field in the database table record… with a variable, in my Corona code. If you are able to type a short example, that would be of great help!
Thanks [import]uid: 148857 topic_id: 30973 reply_id: 123877[/import]