Information générale
Catégorie:
Codage, syntaxe et commandes
Do you think this would be a good VFP8 ER?
IsOpenExclusive() that would return True or False.
>The only sure way is to USE MyFile EXCLUSIVE and have an ON ERROR rountine trap the error if you can't get it exclusive.
>
>>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)
>>
>>(2) Ensure there is nobody else using the file (including users in non VFP products who could have the file open (e.g. report Writer)
>>
>>Thanks in advance for any assistance
>>
>>regards,
>>
>>Gerard
Précédent
Suivant
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