Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do you RLOCK?
Message
From
10/10/2003 10:42:44
 
 
To
09/10/2003 22:06:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00837183
Message ID:
00837411
Views:
27
AFAIK, a major application I wrote uses explicit record locking in exactly one place - perhaps I could replace that, too.
>
>The basic idea - of not using rlock() - is to use optimistic buffering, and let VFP do the record locking automatically.
>
>In this case, records are only locked briefly, when the user saves changes to the record, with a save button (command TableUpdate()).
>
>If the user decides he doesn't need to save, there is no record locking at all.


I don't bother with buffering because, by the time I'm attempting to make any changes to the table, the user has already commited to saving them. The record is only locked for the GATHER from my BO. But since VFP will lock it for me when I do the gather, I'm wondering if the RLOCK actually serves any purpose?

Thanks,

Michelle
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform