Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems w/ simple little app
Message
De
29/08/2001 10:22:25
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
 
À
28/08/2001 19:06:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00550094
Message ID:
00550287
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform