Thrashing of indices has always been a weakness with Xbase products, and VFP is no exception.
You can not restore index files from a backup if any of the following is true:
Records have been added or deleted from the table to which the index file belongs.
Key fields entries have been changed since the backup.
Hth
>Hello all:
>
>Sometimes, (last time it happened when trying to build a view) I suddenly got an error message saying "Fatal error... line ####..."
>The program then crashes and my indexes are destroyed. Anyone has a clue as why this happens, that is so severe as to destroy my indexes?
>Is it safe to copy the indexes from a backup file and paste them on my actual development application?
>Thank you in advance...
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)