Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

size

the size of stack

The size property returns the size of the specified stack in bytes.

The size property can’t be changed with the set command. It’s changed only by adding and deleting objects and graphics from a stack. You must compact the stack to recover the space occupied by the deleted objects and graphics.

Examples

the size of this stack
the size of stack "home"

Demo Script

on stackSize
answer "The size of this stack is" &&¬
(the size of this stack) div 1024 & "K bytes."
end stackSize

Related Topics

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

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View