Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » deleteBackground

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

deleteBackground

deleteBackground

Handler:

on deleteBackground
statements
end deleteBackground

HyperCard sends the deleteBackground message to the card that is being deleted if no other cards in the stack share its background. HyperCard sends the message just before the card disappears.

Note: You cannot stop a background from being deleted by trapping the deleteBackground message. Instead, you must handle the doMenu message or set the cantDelete property for the background.

Related Topics

Placeholders

statements

Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.

put "Hello world" -- built-in command
get total(field 1) -- function call
global HelpInfo -- keyword

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View