Menus have two basic uses: initiating actions and indicating options.
You can use menus to initiate actions, such as opening a specific form or performing a calculation. To do this, assign the menu item for one of the predefined actions or attach a script to carry out the action.
You also can use menus to indicate and set options by using the check menu and uncheck menu statements to add or remove a check mark next to a menu item. For example, a menu can be used to select which taxes apply to a purchase. When the menu is checked, the corresponding tax will be included.
You can enable and disable menu items by using the enable menu and disable menu statements. These statements allow you to control when a user can select a particular menu item.
You can control the content of menus by using the change item statement, which allows you to change contents of a menu item. The following commands can also be used with menus.
Function |
Description |
---|---|
Returns the number of items in a menu. |
|
Returns the location of a specific item in a menu. |
|
Returns the name of the item in a specific location in the menu. |
|
Hides the specified menu item. |
|
Shows the specified menu item. |