>I have friend running VFP 6. One of his apps has a damaged CDX. What is the best way to make sure this doesn't happen to his user?
You can reduce, but not eliminate, corruption by using the FLUSH command after saving changes. This should be an integral part of the framework, so that it is applied in most parts of the application; I put it right after a successful TableUpdate().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)