Adding Setup Code to a Menu System
You can customize a menu system by adding setup code to it. Setup code can include code for creating the environment, defining variables, opening necessary files, and saving or restoring menu systems with the PUSH MENU and POP MENU commands.
To add setup code to a menu system
From the View menu, choose General Options.
In the Menu Code area, select Setup and then choose OK.
In the setup code window, type the appropriate setup code.
Your changes are saved when you close the Menu Designer.
See Also
Performing Tasks with Commands | Adding Cleanup Code to a Menu System | Controlling Menus at Run Time | Designing Menus and Toolbars | Compiling an Application