>Hi All,
>
>May I know how the index file (VFP cdx file) get corrupted, and how to prevent it?
>
>Thank you.
This usually happens if someone shuts down the PC without exiting the program, or if someone closes it via task manager. Other reasons may be bad network connections. Other than that, a bad index key expression may cause index problems, make sure that the index expression ALWAYS returns the same key length.