Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing Forms Before Calling other Forms
Message
De
26/08/1998 16:05:24
 
 
À
26/08/1998 15:59:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00130254
Message ID:
00130265
Vues:
12
>>>I have a form containing a command button. The click event of that command button calls another form. How do I close the Initial form before the other one is called.
>>
>>I think this will work:
>>*** some form snippet
>>DO FORM anotherform
>>Release Thisform
>>But maybe it's enough Thisform.Visible=.F. ? (depends on what you need in)
>
>Maybe a two-step process? First, have the button call the form with
>
>DO FORM anotherform WITH THIS
>
>In the Init of anotherform, have:
>
>LPARAMETERS oCallingForm
>oCallingForm.Release
>
>Whaddya think?

It's always easier to destroy than create (forms etc.) :).
Seriously speaking, linking forms to some external (to them) object properties allows to do this job in very nice way: oApp.oModule.frmEdit=.NULL. and form is gone.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform