Maybe a CLEAR ALL hook of some sort. It could work like this:
CLEAR ALL
RESTART WHAT SHOULDN'T HAVE BEEN CLEARED
Maybe it would be a system var that can point to a program that we'd then load with whatever commands we needed to restart any tools (of course, it would help if the tools had a way of saving and restoring their environment so that the last state of the tool would be preserved). I don't know, maybe that's too messy . . .
>Yes, this would be nice. I had the VFP developers look closely at this issue in VFP 3.0 when I created the Class Browser and also in the following versions of VFP when I was working on other FoxPro based components. This is simply a feature that has not and never will be added to VFP unfortunately. I think the two instances of VFP side by side (one to edit components and one to run apps) is worth a try if you are in a situation that benefits from it (avoiding CLEAR ALL).