Lingo Dictionary > L-N > name (menu item property)

 

name (menu item property)

Syntax

the name of menuItem(whichItem) of menu(whichMenu)
the name of menuItem whichItem of menu whichMenu 

Description

Menu property; determines the text that appears in the menu item specified by whichItem in the menu specified by whichMenu. The whichItem argument is either a menu item name or a menu item number; whichMenu is either a menu name or a menu number.

This property can be tested and set.

Note: Menus are not available in Shockwave.

Example

This statement sets the variable itemName to the name of the eighth item in the Edit menu:

set itemName = the name of menuItem(8) of menu("Edit")

Example

This statement causes a specific file name to follow the word Open in the File menu:

the name of menuItem("Open") of menu("fileMenu") = "Open" && fileName

See also

name (menu property), number (menu items)