Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 2072 - cursor cannot be modified
Message
De
12/06/2003 15:18:10
 
 
À
12/06/2003 13:43:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00787471
Message ID:
00799527
Vues:
88
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform