Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking Error()
Message
 
To
19/09/2002 23:12:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00702589
Message ID:
00702596
Views:
11
>I have written a program that opens all of the dbf's in a directory and scans the file for any corruption. My problem is there have been some dbf's that the program cannot open. How can I trap the error codes returned and skip the file if it cannot be opened?

Would something like this work for you?
private lError
lError = .F.
on error lError = .T.
use MyTable
if lError
    * there was an error opening this table.
endif
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform