>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
endif
Hector Correa