Compartir a través de


How to: Add 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

  1. From the View menu, choose General Options.

  2. In the Menu Code area, select Setup and then choose OK.

  3. In the setup code window, type the appropriate setup code.

    Your changes are saved when you close the Menu Designer.

See Also

Tasks

How to: Perform Tasks with Commands

How to: Add Cleanup Code to a Menu System

How to: Control Menus at Run Time

Other Resources

Designing Menus and Toolbars

Compiling an Application