NEW
Syntax NEW kind
 
Explanation The NEW command allows you to create new Logo objects of a certain type. The output of this command is the name of the object, which may be assigned to a Logo variable for later use.

Currently, Logo knows the following types of names.
 

ARRAY a Logo array
BITMAP a bitmap
BUTTON a pushbutton
CHECKBOX a box with a check mark
EDITBOX a box where you can enter text
EDITOR an editor window
GRAPHICS a Graphics window
LISTBOX a list box
LISTENER the Listener window
OUTPUT an output window
POPUP a pop-up list
RADIOBUTTON a radio button
SCROLLBAR a slider
STATICTEXT a box which displays text
TURTLE a turtle
WINDOW all types of windows
WORKSPACE the Logo workspace

When a Logo element is created, it is by default attached to the current Graphics window. A turtle or a button without a window cannot be displayed by Logo. To attach an element to a window, set its WINDOW property to the name of the Graphics window where it should appear.

The DECLARE command is similar to the NEW command. The difference is that the DECLARE command stores the name of the Logo object into a Logo name.

See also TYPEOF, IS.A, and PPROP.
 

Examples NEW "OUTPUT
Result: OUTPUT.1

A new Output window is created

GPROP "OUTPUT.1 "CHANNEL
Result: 3
(PRINTQUOTE [HI JOE] 3)

The text HI JOE appears in the Output window

TopIndex