Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems w/ simple little app
Message
From
29/08/2001 10:22:25
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
28/08/2001 19:06:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00550094
Message ID:
00550287
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform