Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Destroying Forms?
Message
De
04/05/2001 17:59:14
 
 
À
04/05/2001 17:41:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00503820
Message ID:
00503829
Vues:
17
>Hello,
>
>Is there a way to destroy a form in the Init event method of the form? If not, how can I destroy a form before it shows up on the user's screen and continue on with the rest of my program?
>
>


Return .F. from the Init will prevent the form from getting started.
Since you want to also get past the READ EVENTS, you'll need a CLEAR EVENTS just before the RETURN .F.

If you've tried this, it should work. Don't know why it wouldn't.


>PROBLEM SPECIFICS
>---------------------
>
>The form I am trying to destroy is a setup form. I validate setup information there and if need be run through the setup process again. If I don't need anything then I just try to kill the form and proceed with the other forms in the program.
>
>The setup validation occurs in the Init event method. Right now it does a CLEAR EVENTS, THISFORM.Release() and RETURN .F. but the program still resides in memory and never gets past the READ EVENTS line called right after my DO FORM setup line.
>
>
>Any help is appreciated.
>
>Thanks,
>Matthew
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform