>Hi. VFP6. I have an app so simple that I put all in 1 directory. The startup calls the first screen. The first screen hides and calls the second screen. The second screen releases and shows the 1st screen.
> Good so far? Well, the quit button on the 1st screen doesn't work. I have to click on Program, then Cancel to get out. My quit button reads ThisForm.Release then Quit and I have an On Shutdown (with Clear Events and Quit).
> What am I doing wrong?
when you invoke your first form you should be doing something like
DO FORM My_Form_1
READ EVENTS
and your first form should be
modeless.
the click event for your form1 quit button should be like
THISFORM.RELEASE
CLEAR EVENTS
unless you have some compelling reason to do otherwise, all your forms
expect the first should probably be
modal. on those forms, your
"close" button (or whatever causes return to the previous form) just
needs THISFORM.RELEASE
patrick