Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which file can't be opened?
Message
From
19/01/2000 11:37:43
 
 
To
17/01/2000 11:37:22
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00319022
Message ID:
00319943
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform