Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent form open many times ?
Message
De
24/04/2001 13:02:07
 
 
À
24/04/2001 10:43:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00498813
Message ID:
00499125
Vues:
16
>Probably the simplest thing you can do is to put code in the menu item's 'skipfor'. Say your form name is 'MyForm', then something like:
>
>
>   VarType(MyForm.Name) = 'C'
>
>
>Then if the form is open, it's name will be a type of 'C' and the menu item will be disabled.
>

And if your form MyForm does not exist (and the variable does not exist) you'll get an error if you use VARTYPE() (Alias MyForm does not exist). You should use TYPE("MyForm.Name") in this case.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform