General information
Title:
File Locking - Automatic or Explicit in VFP5?
I have been using FOX for many years now and have been used to using explicit (rlock()) locking in all my apps. I have been working on a large VFP5 app for the last 8 months and have been using the older style of code without buffering.
My code generally looks like...
IF RLOCK()
* Record locked so carry out operation
UNLOCK
ELSE
* Unable to lock record so proceed to ON ERROR
ENDIF
I don't use the Data Environment, preferring to open tables in the Load section.
Could you please advise if there is a better way in VFP5 and perhaps include a skeleton as above.
Regards
Doug Johnston
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only