Information générale
Catégorie:
Codage, syntaxe et commandes
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement