|
|||||||
QTIPS - Menu Item Pre-ProcessingDave Mills of The Nature Conservancy Council strikes again with yet another great menu tip. People frequently want the ability to run a pre process before calling a menu. Dave makes the point that the security logic is called for a menu item before the item is displayed, so to pre-process a menu simply add a security level of @S Sub@ where Sub is a catalogued subroutine which always sets @Ans to true but also does any pre-processing you might require. He also makes the point that the easiest way of keeping track of which menu is currently operative, is to set up a shell menu program that calls the proper menu program but that stores the current menu in labelled common. Make this menu driver the default and the desired result is obtained. (Volume 4, Issue 10, Page 8) |
|||||||
| |||||||