MenuHasParentException

From Xojo Documentation
Jump to: navigation, search

Class (inherits from RuntimeException)

Occurs when code tries to use the same MenuItem in different places.


Examples

Whenever you need to use the same MenuItem in different places, use the Clone method to create a new copy of the MenuItem and its children, if any.

Dim mi As New MenuItem("My menu item")
Dim myClone As MenuItem

myClone = mi.Clone //Creates an independent copy of "mi"

See Also

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About