Error getting tags :
error 404Error getting tags :
error 404 deleteStack | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
deleteStack
Basics
Expander triangle
Type
Message
Syntax
deleteStack
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to the current card of a stack that's about to be deleted.
Examples

on deleteStack -- warn the user
if the mainStack of the owner of the target \
is not the owner of the target then -- it's a substack
answer "This stack will be permanently deleted the" && \
"next time you save the file."
end if
pass deleteStack
end deleteStack

Additional Comments
Expander triangle

Handle the deleteStack message if you want to perform cleanup before a stack is deleted from its stack file.

Comments:

The actual deletion is not triggered by the deleteStack message, so trapping the message and not allowing it to pass does not prevent the stack from being removed.

If a stack's file is deleted with the delete file command (or by the user), and the stack itself is not open, no deleteStack message is sent.

User Comments
Expander triangle