Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. 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.


Demo Script

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

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

« showPict | HyperTalk Reference | stacksInUse »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View