The resource bundle is identified by the system variable ConsoleLib.messageResource, as described in messageResource.
myMenu.MenuItems.addElement(myMenuItem)
The program ends if you issue an openUIstatement for a menu on which no menuItems exist.
Related concepts
Console user interface
Related reference
Arrays
ConsoleUI parts and related variables
openUI
MenuItem fields in EGL consoleUI
Use of new in ConsoleUI
Related task
Creating an interface with ConsoleUI