on saveStackRequest not working?
nnoydb at excite.com
Wed Jul 21 12:34:38 CDT 2004
Here is the on-line help entry for the message.
Sent to the current card when the stack is about to be saved.
on saveStackRequest -- delete all cards but the first
repeat with x = the number of cards down to 2
delete card x
pass saveStackRequest -- or the stack won't be saved
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.
If the stack has not yet been saved, the standard Save dialog box appears. The saveStackRequest message is sent after the user clicks Save in this dialog box, and before the file is saved.
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.
Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
Any resemblance between the above and my own views is non-deterministic.
The question of the existence of views in the absence of anyone to hold
is left as an exercise for the reader. The question of the existence of
is left as an exercise for the second god coefficient.
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)
--- On Wed 07/21, < FlexibleLearning at aol.com > wrote:
From: [mailto: FlexibleLearning at aol.com]
To: use-revolution at lists.runrev.com
Date: Wed, 21 Jul 2004 11:49:24 EDT
Subject: Re: on saveStackRequest not working?
<br>In a message dated 21/07/2004 16:33:36 GMT Daylight Time, "K" <br><nnoydb at excite.com><br>writes:<br><br>I am experiencing a odd behavior in Revolution 2.2.1. I have added the <br>following code to my default/only card.<br><br>on saveStackRequest <br>send compileAFX to this card <br>pass saveStackRequest <br>end saveStackRequest<br><br>The funny thing is the when I hit apple-S the message is not triggered. Any <br>ideas? <br><br><br>Is saveStackRequest a valid message?<br> <br>Try:<br>on commandKeyDown tKey<br> if tKey is "S" then saveStackRequest<br> else pass commandKeyDown<br>end commandKeyDown <br> <br>/H<br>_______________________________________________<br>use-revolution mailing list<br>use-revolution at lists.runrev.com<br>http://lists.runrev.com/mailman/listinfo/use-revolution<br>
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
More information about the use-livecode