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

 

name (menu property)

Syntax

the name of menu(whichMenu)
the name of menu whichMenu 

Description

Menu property; returns a string containing the name of the specified menu number.

This 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 assigns the name of menu number 1 to the variable firstMenu:

firstMenu = menu(1).name

Example

The following handler returns a list of menu names, one per line:

on menuList
	theList = []
	repeat with i = 1 to the number of menus
		theList[i] = the name of menu i
	end repeat
	return theList
end menuList

See also

number (menus), name (menu item property)