Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 2072 - cursor cannot be modified
Message
From
12/06/2003 15:18:10
 
 
To
12/06/2003 13:43:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00787471
Message ID:
00799527
Views:
94
>Andy, Darren and Jim,
>
>Usually, error 2072 happens when record in a cursor is modified (replace/insert) from underneath a grid or browse window and is not saved.
>Saying "modified from underneath a grid", I mean it is modified/inserted by custom code (event handlers, valid,...) while focus stays in the grid. For example., SQL-INSERT leaves the last appended record "dirty" and this confuses the grid. To workaround this problem, the code that modifies the cursor should make sure that all modifications are saved. The simple way to do it is to move from that record GO TOP, GO BOTTOM, SKIP.
>
>Thanks,
>Aleksey.
>

Forgot to mention, the problem shouldn't appear if modified record is the current record in the grid, thus it is not necessary to force it to be saved.

Thanks,
Aleksey.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform