Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best method ?
Message
De
27/11/2013 19:20:52
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01588801
Message ID:
01588803
Vues:
98
>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?

According to VFP9 help:

"This error typically occurs when a record in a cursor is modified in a grid or Browse window and is not saved before moving to another record.

Any code that modifies the cursor should ensure that all modifications are saved before moving the record pointer."

I imagine this applies to VFP8 as well.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform