Lingo Dictionary > L-N > number (menu items) |
![]() ![]() ![]() |
number (menu items)
Syntax
the number of menuItems of menu
whichMenu
Description
Menu property; indicates the number of menu items in the custom menu specified by whichMenu
. The whichMenu
parameter can be a menu name or menu number.
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 sets the variable fileItems
to the number of menu items in the custom File menu:
fileItems = the number of menuItems of menu "File"
Example
This statement sets the variable itemCount
to the number of menu items in the custom menu whose menu number is equal to the variable i
:
itemCount = the number of menuItems of menu i
See also
![]() ![]() ![]() |