Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pessimistic row buffering
Message
 
To
08/12/1998 11:34:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00164758
Message ID:
00165164
Views:
22
Jim,

There is no easy way to do pessimistic strategy using views. Views are naturally optimistic. Even if you wrote the code to locate the record in the original file and lock it, that approach would fail miserably if you ever changed to C/S data sources.

To implement the idea you would need to use the PK(s) in the view to locate the record in the original table(s) and secure locks on them. If you chose to do this generically you would making heavy use of DBGetProp and CursorGetProp to find out what the PK(s) and Table(s) are and then finding the records and locking them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform