Skip to main content
Version: 20 R7 BETA

Get menu title

Get menu title ( menu {; process} ) : Text

ParameterTypeDescription
menuInteger, TextMenu number or Menu reference
processIntegerProcess reference number
Function resultTextTitle of the menu

This command is not thread-safe, it cannot be used in preemptive code.

Description

The Get menu title command returns the title of the menu whose number or reference is passed in menu.

If you omit the process parameter, Get menu title applies to the menu bar for the current process. Otherwise, the command applies to the menu bar for the process whose reference number is passed in process.

Note: If you pass a MenuRef in menu, the process parameter serves no purpose and will be ignored.

See also

Count menus