Lingo Dictionary > G-K > globals |  |

globals

Syntax

    the globals

Description

System property; this property contains a special property list of all current global variables with a value other than `VOID`. Each global variable is a property in the list, with the associated paired value.

You can use the following list operations on `globals`:

| `count()`—Returns the number of entries in the list.
| `getPropAt(n)`—Returns the name of the nth entry.
| `getProp(x)`—Returns the value of an entry with the specified name.
| `getAProp(x)`—Returns the value of an entry with the specified name.

Note: The `globals` property automatically contains the property #version, which is the version of Director running. This means there will always be at least one entry in the list, even if no global variables have been declared yet.

This property differs from `showGlobals` in that `the` `globals` can be used in contexts other than the Message window. To display `the globals` in the Message window, use `showGlobals`.

See also

`showGlobals`, `clearGlobals`