>>>I've have recently had the data environment on 4 forms go missing, causing headaches on some of the more complex forms. I recall running beautify on the code for one of the forms, but i suspect that was just coincidental. Its very random, but getting more frequent.
>>
>>Are you on VFP5? That's when this last happened to me...
>>
>>You may be better off exporting dataenvironents into prgs and using those instead. Prgs are far harder to lose.
>
>For this one, V6 is still in use.
I've reloaded my old V6 and this works... in a bit of a roundabout way: defined a custom class in a prg, had it open tables, instantiated that in form's .load() (via this.newobject("oDe", "de","declass.prg")) and it opened the classes alright. If you have a method somewhere which would open a table for you, code could be rigged to replace all DEs with calls to such PRG based DE objects. I actually think I've even done that once, but it would be easier to write the code again than to find it :).