Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close a specific form
Message
De
21/08/2004 14:28:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/08/2004 23:21:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00935143
Message ID:
00935222
Vues:
21
>Hi. VFP7. I want to release a form, but only if it exists. How do I test for the presence of a particular form?
>
>Thanks, Randy

The way some frameworks handle this is, keep a list of open forms.

For example, let's assume the instance of an application object is called goProgram. (An application object is simply an object, defined once, that keeps important properties and methods handy throughout the application).

Instead of opening a form with:
DO FORM MyForm
you would use, instead:
goProgram.RunForm("MyForm")
and the method in the application object would add it to an array (which is also part of the application object).
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