Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cdx file was corrputed, how to check it's corrupted or not in early stage?

37 views
Skip to first unread message

frankjia

unread,
Mar 24, 2012, 6:21:51 AM3/24/12
to
Hello experts,

The cdx file was corrputed(on network), we want to check it's corrupted or not
in early stage by using C# if it's possible.

I can use C# to open the dbf file, but don't know what to do with cdx file.

Also please let me know if you have other way(language) to check cdx's status.

I really appreciate your help and advice.

Have a nice weekend,

Frank

kusni

unread,
Jul 13, 2012, 5:09:39 PM7/13/12
to
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
0 new messages