Lingo Dictionary > L-N > number (menus) |  |

number (menus)

Syntax

    the number of menus

Description

Menu property; indicates the number of menus installed in the current movie.

This menu property can be tested but not set. Use the `installMenu` command to set up a custom menu bar.

Note: Menus are not available in Shockwave

Example

This statement determines whether any custom menus are installed in the movie and, if no menus are already installed, installs the menu Menubar:

    if the number of menus = 0 then installMenu "Menubar"

Example

This statement displays in the Message window the number of menus that are in the current movie:

    put the number of menus

See also

`installMenu`, `number (menu items)`