Error getting tags :
error 404Error getting tags :
error 404 saveStackRequest | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
saveStackRequest
Basics
Expander triangle
Type
Message
Syntax
saveStackRequest
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 when the stack is about to be saved.
Examples

on saveStackRequest -- delete all cards but the first
repeat with x = the number of cards down to 2
delete card x
end if
pass saveStackRequest -- or the stack won't be saved
end saveStackRequest

Additional Comments
Expander triangle

Handle the saveStackRequest message if you need to do cleanup or other actions before a stack is saved. For example, if the stack creates temporary objects that should not be saved with the stack, you can write a saveStackRequest handler to delete those objects before the stack is saved.

Comments:

The save action is triggered by the saveStackRequest message. This means that trapping the saveStackRequest message and not passing it prevents the stack from being saved. The Revolution IDE locks messages when Save or Save As... are chosen from the File menu to ensure that the save occurs.

User Comments
Expander triangle