Saving the Menu

You can save the menu you are working on at any time. When you save a menu, PowerBuilder saves the compiled menu items and scripts in the library you specify.

The menu name can be any valid PowerBuilder identifier. See the PowerScript Reference.

A common convention is to use m_ as a standard prefix, plus a suffix that helps you identify the particular menu. For example, you might name a menu used in a sales application m_sales.

  1. Select File > Save from the menu bar.
    If you have previously saved the menu, PowerBuilder saves the new version in the same library and returns you to the Menu painter. If you have not previously saved the menu, PowerBuilder displays the Save Menu dialog box.
  2. If you are saving a new menu, enter its name.
  3. Add comments to describe the menu.
    These comments appear in the Select Menu dialog box and in the Library painter. Sybase recommends that you use comments to identify the menu's purpose.
  4. Specify the library in which to save the menu and click OK.