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.
- Select 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.
- If you are saving a new menu, enter its name.
- 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.
- Specify the library in which to save the menu and click OK.