Disable in Menu but not TCL? (AREV Specific)
At 08 OCT 2004 04:54:08PM Dave Hatcher wrote:
Does anyone know how to disable the option in menus (brings up all menus in the menus table) without disabling the for TCL?
At 08 OCT 2004 05:44PM Matt Sorrell wrote:
Dave,
My first thought was to removed F2 from the @PRIORITY.INT array at logon. The only problem with that approach is that you have now effectively disabled "Options" functionality throughout the system.
However, I did notice that when you define a menu template, you have the option of specifying a code/command pair for "Option". If you define this, then it will be fired instead of the generic Option processing which shows the list of menus.
For instance, I set the Code to "HL", and the command to the literal string "Not Allowed." When I went back to the menu and pressed F2, the system displayed the message "Not Allowed" on the screen. You could have it call a null subroutine that does nothing but return, and you have effectively disabled F2 just for menus.
To make this easier to accomplish, all you need to do is write a small R/Basic program to read through all of your menu templates. FMC 19 is the code, and FMC 20 is the command to execute. If these fields are blank, then you can populate your null subroutine information, and voila!!!, you're all set.
I know this is a bit of a kludge, but I couldn't find anywhere to globally disable F2 just while on a menu.
HTH,
msorrel@greyhound.com