In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

QTIPS - Menu Item Pre-Processing

Dave 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)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel