From Xojo Documentation

Class (inherits from RuntimeException)

New in 2011r3

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

ErrorNumber Message Reason fa-lock-32.png
CallStack Stack

Sample Code

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

MenuItem, RuntimeException classes; Function, Catch, Raise statements; Nil datatype; Exception, Try statements.