Livecode Wiki
Advertisement

Returns a list of the main stacks that are loaded into memory.

Built-in Function handler[]

Syntax:

mainStacks()

Examples:

the mainStacks
repeat while myStack is among the lines of the mainStacks

Use the mainStacks function to find out which main stacks are currently available.

Stacks that have not yet been saved are included in the list.

The list includes stacks that are part of the LiveCode development environment (such as the message box and menu bar).

See also: openStacks (function),revLoadedStacks (function),topStack (function),reloadStack (message),stack (object),defaultStack (property),substacks (property),mainStack (property),stackFiles (property),name (property),

Advertisement