Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determing file type
Message
De
25/05/1999 18:43:37
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, Californie, États-Unis
 
 
À
25/05/1999 18:09:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00222674
Message ID:
00222703
Vues:
31
>>Is there an easy way to check to see if a file is a valid DBF?
>>
>>I'm issuing an APPEND FROM myfile.dbf. This works fine and dandy until someone points to a file that's not a DBF. VFP issues the error "Not a table." Is there a way to check for this before I issues to APPEND? For that matter, what do apps look at to determine what kind of file it's dealing with? Is there something reliable in the header?
>
>
>You can trap it in the Error Method.

Thanks Craig. I guess that means I can't test it ahead of time and will have to do it after the fact, huh? >sigh< Oh well ...
Ernie Veniegas
Micro System Solutions
... sensible software by design
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform