Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffering New Data
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00049052
Message ID:
00049111
Views:
48
>To continue recent discussions about buffering....
>I always use optimistic buffering for forms, but find users sometimes inadvertantly are saving records when bombing out (quitting etc.)
>
>Is there a status flag to read to identify when a new record is in the buffer, but not saved yet? Then on exit a missed record could auto be reverted?
>
>No doubt for many this is a d-u-m-b question but I am close to going back to scatter/gather..
>
>tia

Jeff,

I have a transaction class that also handles the calls to the UpdateTable and RevertTable funtions. If a user exits a form without hitting the save button,
the .Destroy event of the form has THISFORM.otransaction.RevertDB() which runs the reverttable stuff flushing the buffers and not saving anything on the form.
This way, the user must hit the save button in order to save data.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform