Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unlock All and Buffered Data
Message
From
12/03/2003 10:36:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00762721
Message ID:
00764800
Views:
23
>But having just tested it with Row Level buffering, UNLOCK and UNLOCK ALL BOTH Tableupdate the current record.

I didn't know about that, and I don't know whether this behaviour is by design or not.

However, I want to point out that when you use buffering, you will usually not need to use explicit locks as well. VFP takes care of it.

For instance, the usual recommendation is to use optimistic buffering. If you do, the record is locked automatically as soon as you try to save changes with TableUpdate(), and unlocked immediately afterwards.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform