Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking Error()
Message
 
À
19/09/2002 23:12:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00702589
Message ID:
00702596
Vues:
12
>I have written a program that opens all of the dbf's in a directory and scans the file for any corruption. My problem is there have been some dbf's that the program cannot open. How can I trap the error codes returned and skip the file if it cannot be opened?

Would something like this work for you?
private lError
lError = .F.
on error lError = .T.
use MyTable
if lError
    * there was an error opening this table.
endif
Hector Correa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform