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.

freeSize

the freeSize of stack

The freeSize property returns the amount of free space, in bytes, in the specified stack. (Free space is created in a stack each time you add or delete an object or graphics.)

To set the freeSize property to 0, choose Compact Stack from the File menu or use the command

doMenu "Compact Stack"

from a handler or the Message box.


Demo Script

on checkFreeSize
   get the freeSize of this stack
   answer "The freeSize of this stack is" && it div 1024 & "K."
 end checkFreeSize

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

« fixedLineHeight | HyperTalk Reference | grid »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

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.

freeSize

the freeSize of stack

The freeSize property returns the amount of free space, in bytes, in the specified stack. (Free space is created in a stack each time you add or delete an object or graphics.)

To set the freeSize property to 0, choose Compact Stack from the File menu or use the command

doMenu "Compact Stack"

from a handler or the Message box.


Demo Script

on checkFreeSize
   get the freeSize of this stack
   answer "The freeSize of this stack is" && it div 1024 & "K."
 end checkFreeSize

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

« fixedLineHeight | HyperTalk Reference | grid »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View