Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorry to be such a Dullard!
Message
De
25/07/2010 21:12:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01473802
Message ID:
01473823
Vues:
46
>>>Using this technique you would not be able to close form1 without first closing form2.
>>
>>Somehow this never caused me problems. Wouldn't closing Form1 make the reference to Form2 go out of scope, thus closing it? (If using the LINKED keyword, at least - or creating the form from a class, with a CREATEOBJECT().)
>
>I think the form now holds the reference to another form, so when you close it, it will be a dangling reference.
>
>Check FAQ #7975

In any case I believe that, for many purposes, the parent form is a very convenient place to control the child form. If there are any of the problems you mention, then, on closing the parent form, the child form should usually be closed from the parent form. In the exceptional cases where you want to keep the child form open, the reference to the child form can be set to NULL.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform