Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing multiple instances of a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00018445
Message ID:
00018484
Vues:
44
>>>Does anyone have a way of preventing multiple instances of a form without setting the Form WindowType property to 1-Modal?
>>
>>I beleive you'll only receive general ways of accomplishing your task until a little more is known about how and where you are calling the form form, if from another form or a menu. If you are calling from your menu just issue a *skip for WEXIST("formname") and that option will be disabled when you refresh the menu. This will be by far the easiest and less cumbersome way of doing what you need.
>>
>>HTH
>
>
>Less cumbersome, but not as fun!:) I want the form to be acitivated if it is chosen again from the menu.

Check for the existence of the form in your init method using wexist(). If your init method returns(.F.), the form will not load. You could also activate the existing form from here.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform