Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN() to go exclusive
Message
From
02/08/2003 12:27:39
 
 
To
02/08/2003 12:26:09
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00816200
Message ID:
00816204
Views:
20
>I have never tried this but you might try renaming the file instead of fopen(). You could wrap this in a try catch loop and if you get an error assume that it is in use. If rename is successful, then you know it was not in use and another user can't access the file.

Well, in this case, we might as well just use TRY CATCH with what we have now. But, I was looking for a way to avoid going into that. I have never used such an approach. I try to always do code that will work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform