Description
Copies RapidForm command menu or adds custom command menu to menu bar to organize user menus.
Syntax
Function RFUserInterface.AddMenu(srcWorkbenchName As String, srcParentName As String, srcMenuName As String, destWorkbenchName As String, destParentName As String, destMenuName As String, type As RFMenuItemType) As RFErrorCode
The AddMenu syntax has these parts:
| Part | Description |
|---|---|
| srcWorkbenchName | [IN] String Required. If menu type is RF_MENU_ITEM_RF_COMMAND, it indicates the name of workbench having source menu. If menu type is RF_MENU_ITEM_USER_COMMAND, it indicates the name of VBA project. |
| srcParentName | [IN] String Required. If menu type is RF_MENU_ITEM_RF_COMMAND, it indicates the name of parent popup menu having source menu. If menu type is RF_MENU_ITEM_USER_COMMAND, it indicates the name of VBA project item. |
| srcMenuName | [IN] String Required. If menu type is RF_MENU_ITEM_RF_COMMAND, it indicates the name of source menu. If menu type is RF_MENU_ITEM_USER_COMMAND, it indicates the name of VBA subroutine. |
| destWorkbenchName | [IN] String Required. The name of workbench which creates destination menu. |
| destParentName | [IN] String Required. The name of parent popup menu to which destination menu add. |
| destMenuName | [IN] String Required. The name of destination menu. |
| type | [IN] RFMenuItemType Required. The type of menu. |
Remarks