📚 SAP Business One SDK Help

Add Method
See Also 
Caption
The display name of the menu item
Type
The type of menu item
Position
The position of the menu item within the menu (1-based)

Description

Deprecated in UI API 2004.
The method is supported for backward compatibility for the next two releases. Use Menus.AddEx instead.

Syntax

Visual Basic
Public Function Add( _
   ByVal MenuUID As String, _
   ByVal Caption As String, _
   ByVal Type As BoMenuType, _
   ByVal Position As Long _
) As MenuItem

Parameters

MenuUID
The unique ID of the menu item
Caption
The display name of the menu item
Type
ValueDescription
mt_STRINGActive menu item with no subitems (menu ID should be greater than 0)
mt_POPUPMenu item with subitems
mt_SEPERATORSeparator item
The type of menu item
Position
The position of the menu item within the menu (1-based)

See Also