Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check for Exclusivity
Message
From
16/10/2001 16:25:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569279
Message ID:
00569292
Views:
24
>Hi.
>I have a form, with a file set up in the data environment.
>On a button of the form, I have code to Zap the file.
>
>How do I:
>(1) Set Exclu on for the file (so that I can zap it)
> (Overall in my APP, Exclu is set off so from the DE, the file will not be open exclusively)

To see if a file can be opened exclusive (and to temporarily get a lock on it), you can do:

nFH = FOPEN( 'yourFile.DBF',11) will be -1 if the file is in use anywhere else. Note, you'll have to FLCOSE(nFH) the file before you can USE it.
Previous
Reply
Map
View

Click here to load this message in the networking platform