Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffering
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00509102
Message ID:
00509118
Views:
17
>What's the diference between optimist and pessimist ?
>I read help but dind't understand
Optmistic locks records just before trying to save them. It is called optimistic because even when you start editing the record it does not lock it, it waits until you try to save it (and it hopes that it will succed locking and saving.)

On the other side, Pessimistic locks records as soon as you start editing them. It does not care if you will save or discard your changes, it will lock the record right away to prevent other user from getting to it.


>When do I have to use command: tablerevert ( ) ?
Let's say the user make some changes to the record on the screen and then they decide they don't want to save their changes. They hit "cancel" and your program will issue a TableRevert() to make sure those changes are gone.
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform