start using

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
start using <stack>
Synonymslibrary
Summary

Places a stack into the message path.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
stack

Any stack reference.

Example
start using stack "mylibrary"
RelatedProperty: script, stacksInUse
Message: releaseStack, libraryStack
Library: library
Glossary: object, handler, current stack, message, command, development environment, message path
Control Structure: function
Function: scriptLimits, backScripts, stacks
Command: call, stop using, insert script
Object: stack
Description

Use the start using command to use a stack's script as a library for frequently-used handlers.

The start using command places a stack's script into the message path after the current stack and before any objects in the backScripts.

When you start using a stack, the libraryStack message is sent to the stack.

When a standalone application is running, it can insert up to fifty stacks into the stacksInUse. This limit is set by line 3 of the scriptLimits function. When using the development environment, you can insert any number of stacks into the message path.

Tagsobjects