If you mean to add items to a menu from code -there is a way.
First you have to create a menu using the menu editor.
Create for example a menu item named mnuArray.
Set the index to 0 - that's how you create an array of menu items.
In code you can add as many elements as you like using Load statement. Here is the code:
Private Sub Command1_Click()
Load mnuArray(1)
mnuArray(1).Caption = "Added menu item"
End Sub
There are some limitations because the element 0 should be visible and you cannot choose the place for the loaded elements.
Hope that helps
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.