Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent second instance of form opening
Message
De
26/08/2002 21:58:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/08/2002 21:53:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00693905
Message ID:
00693906
Vues:
21
>How can I prevent a user from opening an application a second time? Never had the problem before, but seems like it all of a sudden became a problem with one of my clients. I searched both the download files and other thread and never found the right keywords as I remember it coming up several times before. I've toyed around with creating a memory variable,then wiping it out when they exit, but not sure how to deal with a computer crash or system lockup.
>
>Any help appreciated
>Gaylen

The computer crash will only be a problem if you want to check for the same form in more than one application. Each instance of the application keeps its own copy of memory variables.

Commercial frameworks keep an array (in the case of VFX: an array property in the application object), listing all the currently-open forms. Perhaps this should be part of your strategy.

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