Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with multiuser
Message
 
To
18/07/2001 17:28:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00531740
Message ID:
00532451
Views:
13
If TABLEUPDATE() fails, an error handler won't catch the error. You have to test it with AERROR() on the next line of code immediately following the call to TABLEUPDATE(). Then either commit or rollback the transaction.

Also, Pessimistic locking does not scale well and is not considered good practice. Since a record is locked when an edit begins, a person can begin an edit then walk away from their machine and lock out the whole network. Use Optimistic locking instead. With it, the record is only locked for the amount of time it takes to commit a changes. You can also write custom conflict resolution code to flag whether someone made changes while you were editing. There are some good examples of this in the Developers Guide.

Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform