>Amazing! I'll have to try that trick next time I run across this problem - if it's worth the trouble. I've used CLEAR ALL as one of the final cleanup steps in various incarnations of my main programs, but I prefer to avoid it unless there's no alternative. CLEAR ALL seems a bit heavy-handed if your trying to be polite about restoring the environment.
I think Bela may be on to something. I use CLEAR ALL constantly, both programmatically and in the Command Window, and I never have the lost code problem.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.