Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent form open many times ?
Message
De
24/04/2001 15:12:41
 
 
À
24/04/2001 13:02:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00498813
Message ID:
00499195
Vues:
16
Whoops! Darned right! Got to learn to start waiting for the brain to catch up with the fingers.

Alan

>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform