Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor buffer error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Cursor buffer error
Divers
Thread ID:
00931299
Message ID:
00931299
Vues:
54
I am having a problem with one line of code. The cursor "c_pssoln" holds the lines for a sales order. About once a week or so we get an error saying that the cursor contains uncommited changes when I'm sure there are none. I even put a line before the CursorSetProp() to revert any changes but I still get the error. This only happens, I estimate, about once every 200 or so orders. The users are up in arms because it causes the program to crash and they have to restart it. The code is in a prg, not an scx.
Any ideas anyone?
TIA

*
* added tablerevert in case any changes were somehow left
=TableRevert(.t., 'c_pssoln')
=CursorSetProp('Buffering', 1, 'c_pssoln') <--- LINE CAUSING ERROR.
mform.grdLines.Enabled = .f.
*
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform