Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for a corrupted database within program
Message
 
À
30/01/2003 04:37:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00747047
Message ID:
00747298
Vues:
13
One of the solution could be:

close data all

lcdbc="DBC_file_name.dbc"
if not file(lcdbc) && add other conditions as needed
.....
else
on error wait wind "Database "+lcdbc+" is corrupted."
use DBC_file_name.DBC
use
on error
endif

>Hi,
>
>I have a customer whose .dbc file has become corrupted. Is there any way of validating it from within the program?
>
>The idea being...
>Start program
>Check that database is valid.
>If valid, copy database to backup.
>Else warn user that database is invalid.
>
>
>Regards
>Doug Johnston
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform