When you create an EGL program that uses consoleUI, every variable of type Menu, MenuItem, Prompt, and Window is a reference variable, which contains a memory address that refers to a value stored outside the variable.
myPrompt Prompt { message = "Type your ID: "};
myPrompt Prompt = new Prompt { message = "Type your ID: "};
When you are declaring variables, the difference between the two formats has little practical effect; but when you code the openUI statement, the word new provides a coding convenience, as shown in openUI.
new partName
For details on other implications of reference variables, see Reference compatibility in EGL.
Related concepts
Console user interface
Related reference
ConsoleUI parts and related variables
openUI
Reference compatibility in EGL
Related tasks
Creating an interface with ConsoleUI