Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

start using

start using stack

The start using command inserts the specified stack into the message-passing order between the current stack and the Home stack (or between the current stack and any other stacks being used).

Handlers in the stack script of the newly inserted stack can intercept messages as the messages move through the message-passing order.

HyperCard records the full path name of the stacks being used as lines in the global property the stacksInUse. You can add up to 16 stacks. The first stack in use is on line 1 of the stacksInUse, the second stack is on line 2 of the stacksInUse, and so on. The order of items in the StacksInUse determines the message-passing order: from the current stack to line 1 of the StacksInUse, to line 2, and so on, to the Home stack.


Examples

start using stack "My Favorite Scripts"

answer file "What stack do you want to use?"
if it is not empty then start using stack it

Placeholders

stack
An expression that identifies a stack by its name, using one of the following forms:

this stack
stack text -- name or path name


For example:

stack "Home"
stack "Simonides:School:References"
this stack
stack "HD:Stacks:Addresses alias
When used inside a stack script:
me
When a stack receives a message:[the] target

Related Topics

« sort | HyperTalk Reference | stop using »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

start using

start using stack

The start using command inserts the specified stack into the message-passing order between the current stack and the Home stack (or between the current stack and any other stacks being used).

Handlers in the stack script of the newly inserted stack can intercept messages as the messages move through the message-passing order.

HyperCard records the full path name of the stacks being used as lines in the global property the stacksInUse. You can add up to 16 stacks. The first stack in use is on line 1 of the stacksInUse, the second stack is on line 2 of the stacksInUse, and so on. The order of items in the StacksInUse determines the message-passing order: from the current stack to line 1 of the StacksInUse, to line 2, and so on, to the Home stack.


Examples

start using stack "My Favorite Scripts"

answer file "What stack do you want to use?"
if it is not empty then start using stack it

Placeholders

stack
An expression that identifies a stack by its name, using one of the following forms:

this stack
stack text -- name or path name


For example:

stack "Home"
stack "Simonides:School:References"
this stack
stack "HD:Stacks:Addresses alias
When used inside a stack script:
me
When a stack receives a message:[the] target

Related Topics

« sort | HyperTalk Reference | stop using »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View