Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form.Release()
Message
 
À
01/09/1998 13:11:40
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00131941
Message ID:
00132162
Vues:
17
Nancy,
Doesn't the LINKED form automatically close/release when the original form is released? Because the object reference is gone? There have been a series of threads about forms closing when the programmer DOESN'T want them to because of this.

Barbara

>You might be able to add a custom property to your first form called oNewTask. And assign an object reference (DO FORM NewTask NAME LINKED TO this.oNewTask ) to the second form to the property. Then you can get at with
>
>thisform.oNewtask.release
>
>One comment though, I'm of the opinion that you have another button on the second form for closing that one. It might be confusing to have one button close different forms, depending on....what exactly?
>
>HTH
>
>>I have a form with a close button on it. Other buttons also of course. It also has a button that calls another form 'NewTask'. All this works fine. I would like to use the one Close button to close either form. ThisForm.Release() closes the original form but how to reference the form appearing on top of the BaseForm1. I know I can do it by putting a Close button on the 'NewTask' form but it is just a data entry form and requires no other buttons. So how does one reference, "Release()" a form other than "ThisForm"? TIA. Have a nice day.
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform