Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test if a table is valid before opening
Message
De
01/04/2008 19:36:57
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01307527
Message ID:
01307530
Vues:
8
Hi Jim

Use try endtry.
try 
   use table
catch to loerror
   if loerror.error = error_number???
      handle the problem here. 
   endif 
endtry 
>Is there a way of testing if a table (filename.dbf) is valid before attempting to open and use it. I have an application that uses tables that are sent via FTP, and every once in awhile, I get one that gives the error message that "c:\path\filename.dbf is not a table." and my program crashes.
>Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform