| DECLARE (DCL) | |||||||||||||||||||||||||||||||||||
| Syntax | DECLARE kind name |
||||||||||||||||||||||||||||||||||
| Explanation | The DECLARE command allows you to create
new Logo names, giving a new name a certain type. Logo
uses this command internally to create objects of all
kinds, like bitmaps, buttons, and turtles. When a new
Logo name is declared, Logo creates the name according to
its type and stores it into the global workspace. Currently,
Logo knows the following types of names.
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 NEW command is similar to the DECLARE command. |
||||||||||||||||||||||||||||||||||
| Examples | DECLARE "OUTPUT "OUT
A new Output window is created GPROP "OUT "CHANNEL The text HI JOE appears in the Output window |
||||||||||||||||||||||||||||||||||