Hi Frank,
I'm not familiar with C# language, but here's the code in Visual Foxpro to see
if the index file of the related table is invalid/corrupted.
ON ERROR DO CheckTableState WITH ERROR()
USE myTable && will return the error code message if the index is
invalid/corrupted.
FUNCTION CheckTableState
LPARAMETERS tnError
* Error code:
* 15 : Table file invalid/not known
* 41 : Memo file missing or corrupted
* 114 : Index file invalid/corrupted
* 1007 : Index file missing
* 2091 : Table file corrupted
MESSAGEBOX(tnError)
ENDFUNC
Hope this helps.
Regards,
Kusni