4D v16.3

Get menu item method

Home

 
4D v16.3
Get menu item method

Get menu item method 


 

Get menu item method ( menu ; menuItem {; process} ) -> Function result 
Parameter Type   Description
menu  Longint, MenuRef in Menu reference or Menu number
menuItem  Longint in Number of menu item or -1 for the last item added to the menu
process  Longint in Process number
Function result  String in Method name

The Get menu item method command returns the name of the 4D project method associated with the menu item designated by the menu and menuItem parameters.

You can pass -1 in menuItem in order to specify the last item added to menu.

In menu, you can pass a menu reference (MenuRef) or a menu number. If you pass a menu reference, the process parameter is unnecessary and will be ignored if it is passed. If you pass a menu number, the command will take the corresponding menu in the main menu bar of the current process into account. If you want to designate another process, pass its number in the optional process parameter.

The command returns the name of the 4D method as a character string (expression). If no method is associated with a menu item, the command returns an empty string.



See also 

SET MENU ITEM METHOD

 
PROPERTIES 

Product: 4D
Theme: Menus
Number: 981

 
HISTORY 

Created: 4D v11 SQL

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)