Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SKIP FOR expression
Message
De
18/01/2005 10:56:52
 
 
À
18/01/2005 10:45:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00977929
Message ID:
00978122
Vues:
15
Hi Gregory

Hmmm

I appreciate your reservation. When the user selects a form to open, this routine is used to see if that form is already open, so as not to invoke it twice. How, in the time between the user selecting a form to open (e.g. from a menu or from an icon), and its opening, could he have selected another form and closed it?

But, indeed, I have seen similar code used for closing down all the forms in an app. In that case, as you say, the .FormCount will decrement with each one closed (Just luike .ListCount decrements in a mover list).

Maybe I'm missing a scenario/eventuality/permutation of events here but I can't see it.

Terry

>hi Terry,
>
>The remarks also apply to the use you have for it.
>_______________________________
>>Thank you, Gregory
>>
>>This routine is used for something else, to see if a named form is open, and was not meant for Peter's problem. I just thought it might be useful to him to adapt it. But, yes, if used for closing forms down then you'd be right.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform