Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2008 Server
>Using VFP8 in Multi-User environment submitting changes via Transaction.
>What is the best way to deal with:
>
>"Cursor cannot be modified because it contains unsaved changes" (error 2072).
>
>Error 2072 is not listed in VFP Help files. Can somebody explain exactly what is really happening?.
>I know if there are unsaved changes in memory, I can submit them to disk using TABLEUPDATE() - or discard them using TABLEREVERT()
>
>What I am not sure exactly is the mechanics of how the table gets into this state?
>
>Thanks
Somewhere code made a change to the cursor. It may be intended or accidental. Since the change was not handled with a tableupdate, you get this error. Where that change happened is what you need to find. Clearing the change with either tableupdate or tablerevert at the point of the error message is the wrong thing to do. That's dealing with a symptom, not the cause.
Previous
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