Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which file can't be opened?
Message
De
19/01/2000 11:37:43
 
 
À
17/01/2000 11:37:22
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00319022
Message ID:
00319943
Vues:
9
Hi Elyse.

>I use the DataEnvironment to open most of my tables. When there is a problem opening one of the tables (i.e.-it doesn't exist), it comes up with a locate screen, but I don't know which file couldn't be opened. Is there a way to trap and display the name of the file that couldn't be opened?

You could open all your tables at application startup using SDT's OpenAllTables method. If it fails on any table, it'll return .F. and you can check SDTMgr.cAlias property to see which table failed, and then handle it appropriately.

Opening all the tables at app startup speeds up form instantiation (even those with private datasessions) since VFP doesn't have to go back to disk to open the table every time a form is run.

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform