📚 SAP Business One SDK Help

Menus Property
See Also 

Description

A collection of the current menu items in the SAP Business One menu tree.

Use the Menus collection to access a menu item:

  • By unique ID
  • By index (0-based)

You can directly access any menu item in the application's menu tree by using its unique ID, or you can traverse the menu tree by using an index at each level, which returns the menu item at a specified position in the current level. This property (Application.Menus) returns the top-level menu items.

Property type

Read-only property

Syntax

Visual Basic
Public Property Menus() As Menus

Remarks

If you need to activate a menu item, it is more efficient to use the ActivateMenuItem method.

If you need to access a particular MenuItem object, iterate through the menu tree starting with the Menus collection.

See Also