Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deactivating menu pads
Message
 
 
To
01/10/1999 12:05:51
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00271593
Message ID:
00271602
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform