Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deactivating menu pads
Message
 
 
À
01/10/1999 12:05:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00271593
Message ID:
00271602
Vues:
27
>I've put a logical variable in the 'skip for' of some menu items.
>
>Those menu items deactivate correctly when I set that variable to .t. in the init of a form and reset to .f. in the deactivate.
>
>But, when I set to .t. in a .prg I call from a menu item, I'm not seeing any deactivation of the menu items.
>
>What am I missing?

Is the variable a public variable? After the PRG executes, a local or private variable goes out of scope. You might be better off basing the SKIP FOR on an application object [oApp] property. e.g., SKIP FOR NOT oApp.MenuHelpBar1 where MenuHelpBar1 is a logical value.

Whenever most of us launch an application we create an application object to store property values available to all parts of the app. These app properties replace the old public or global variables.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform