mainStacks

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

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

the mainStacks

# Examples

the mainStacks

repeat while myStack is among the lines of the mainStacks

# Description

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).

# Tags

# See

- **property:** defaultStack, substacks, mainStack, stackFiles, name - **message:** reloadStack - **keyword:** line - **object:** stack - **function:** stacks, openStacks, revLoadedStacks, topStack - **glossary:** property, main stack, return, loaded into memory - **control structure:** function