The FindCommandInMenu() function provided by Microsoft Dynamics GP is used to find the location of a command or command list in an existing menu.
FindCommandInMenu(ParentDictID, ParentFormID, ParentCmdID, CmdDictID, CmdFormID, CmdID, LoadMode {, UserID})
• ParentDictID – The ID of the dictionary that contains the command list (menu or submenu) that is being examined. Use the constant DYNAMICS to specify the Microsoft Dynamics GP main dictionary.
• ParentFormID – The resource ID of the command form that contains the definition of the command list that is being examined.
• ParentCmdID – The resource ID of the command list that is being examined.
• CmdDictID – The ID of the dictionary that contains the command whose location is being examined.
• CmdFormID – The resource ID of the command form that contains the definition of the command whose location is being examined.
• CmdID – The resource ID of the command whose location is being examined.
• LoadMode – An integer that specifies which set of menus is being examined. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
MENULOAD_TOTABLE |
The menu set in the syMenuMstr table is being examined. |
MENULOAD_TOMEMORY |
The menu set displayed in Microsoft Dynamics GP is being examined. |
• UserID – An optional string that specifies which user’s set of menus will be examined to find the position of the menu item. Specify the empty string ("") to examine the default set of menus.
An integer that specifies the location (sequence number) of the specified menu item. The value 0 indicates the item was not found in the menu or submenu.