Skip to main content
Version: 21 R3

Get menu item

Get menu item ( menu : Integer, Text ; menuItem : Integer {; process : Integer} ) : Text

ParameterTypeDescription
menuInteger, Text→Menu number or Menu reference
menuItemInteger→Menu item number or -1 for last item added
processInteger→Process reference number
Function resultText←Text of the menu item
History
ReleaseChanges
11 SQLModified
<6Created

Description​

The Get menu item command returns the text of the menu item whose menu and item numbers are passed in menu and menuItem. You can pass -1 in menuItem in order to indicate the last item added to menu.

If you omit the process parameter, Get menu item applies to the menu bar for the current process. Otherwise, Get menu item 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​

Get menu item key
SET MENU ITEM

Properties​

Command number422
Thread safeno
Forbidden on the server