I have multiple compiled .exes using VFP 8.0. Each one is called by a prg,
calls the form and when the form is destroyed, clear events is issued.
Now, I want to call each of these individual .exe's from another .exe. (a
form acting as a main menu). But the problem is that when I run the
individual .exe the entire app is closed because each .exe issues a clear
events in the destroy event.
I thought about creating a public variable when the main menu is
initialized. Then in each individual .exe during the destory event,
checking for the existence of the public variable. If it does not exist,
then the destory event would issue the clear events and act as normal. If
the public variable does exist, then the destory event would only release
the form and return to the main menu.
Is there a better way to handle this. I want to minimize changes to my
existing .exes.
Thanks,
John