General information
Category:
Coding, syntax & commands
>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
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