Hi Gerry,
If I'm understanding correctly and Changed is a field in a table named PHONEBOOK, then you'll need to:
Replace PhoneBook.Changed with .T.
Yes, changed = .t. would create a local variable, and without the replace command VFP assumes you are trying to refer to an object named PhoneBook.
>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.
kenweber
GCom2 Solutions
Microsoft Certified Professional