Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close any open form before exit
Message
De
15/06/2004 12:44:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/06/2004 12:40:44
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00913951
Message ID:
00913953
Vues:
16
>Hello All,
>I need to ensure (programatically)that any open form is closed before my application exits.
>How do i go about it.
>TIA

It is better if each form is opened through a special method in your appication object. (Ask me if you don't know what an "application object" is.)

This method would add the form to a global array, or, better, to an array property which is also part of the application object. The form would be added as an object reference.

Then, you can go through this array, and issue .Release() for each form object.

HTH,

Hilmar.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform