General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Interactive changes in Grids and Tables
I have a form containing a grid whose data source is a DBF table. As soon as the user edits any field in the grid I want to set a field of the DBF called 'changed' to .T. The idea being to send only the changed records to another application at the end of the editing session.
I have tried putting the following code in the the GRID1.COLUMN1.TEXT1.IntercativeChange event :
PHONEBOOK.changed = .T.
However I get a runtime error
Object PHONEBOOK not found. I have omitted the ALIAS name and the error goes away i.e.:
changed = .T.
The database is never updated and I suspect that the above line merely creates a local variable that is destroyed as the procedure exits.
Can anyone help with a bug fix or even a better strategy.
Thanks,
Gerry.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only