Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor buffer error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Cursor buffer error
Miscellaneous
Thread ID:
00931299
Message ID:
00931299
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform