Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with flock()
Message
 
 
To
16/02/2005 10:48:57
Brian O'Donovan
Crescent Computers
Cork, Ireland
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00987457
Message ID:
00987464
Views:
31
>Im having problems trying to find out if I can open a file exclusively or not.I set exclusive off and open the file. Then I use flock() to see if it returns .t.. It does but when I use the command "use orders excl" in order to pack the file, I get a file access denied error. Where am I going wrong please ?
>
TRY
  use orders excl
CATCH
ENDTRY

IF USED("orders")
  * Opened Exclusive -  do whatever
ELSE
ENDIF
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform