Hooman,
There is definitely a solution.
In the visual tool that VFP has provided for building menus you select the 'Options' checkbox. Then a little window comes up. You see the SkipFor entry box. You enter a logical variable or some logical equation there. It works like a charm. If you want the entire menu disabled, then you would probably define an object property (application object) something like DisableMenu and when it is .T., the menu would be disabled, when .F. the menu would not be disabled. You would put 'oAppObject.DisableMenu' into that 'SkipFor' box after you check Options in the menu builder. Or, if you don't use application objects, then you could define the variable as a global variable and switch it from .T. to .F. any time you want the menu on or off.
Wally
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement