Steve,
Do you mean at design time or runtime? It'll lose the DE if you take a form and SaveAsClass because form classes can't have a DE you have to add it at runtime.
>I just want to know why Visual Foxpro 5.0 sometimes lost all the tables in the Data Environment. Is there a way to prevent this from happening again?