>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