Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for a locked file
Message
De
25/04/2005 10:56:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/04/2005 10:53:54
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
01008092
Message ID:
01008094
Vues:
15
>Hello,
>I was wondering if anybody had a good way to check for a locked file? I am moving a list of files, and can't have the error message pop up when I don't have access to one of them. Thanks for the help!
>
>MAC

Use error handling. TRY works in VFP 8 and later, IIRC; in previous versions, you would use something like:
local llError
on error llError = .T.

* The following command may, or may not, work
use MyTable

if not llError
  * Continue processing here
endif
on error
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform