on saveStackRequest not working?

K nnoydb at excite.com
Wed Jul 21 12:37:54 CDT 2004


Does anyone know a replacement message since I have processing that is necessary prior to the stack being saved? 

K


-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:

Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. 
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
them
is left as an exercise for the reader. The question of the existence of
the reader
 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, K < nnoydb at excite.com > wrote:
From: K [mailto: nnoydb at excite.com]
To: use-revolution at lists.runrev.com
Date: Wed, 21 Jul 2004 13:34:38 -0400 (EDT)
Subject: Re: on saveStackRequest not working?

<br><br>Here is the on-line help entry for the message.<br><br>saveStackRequest message<br><br>Sent to the current card when the stack is about to be saved.<br><br>on saveStackRequest -- delete all cards but the first<br>  repeat with x = the number of cards down to 2<br>    delete card x<br>  end if<br>  pass saveStackRequest -- or the stack won't be saved<br>end saveStackRequest<br><br>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.<br><br>Comments:<br>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.<br><br>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.<br><br><br>-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-<br>Disclaimer:<br><br>Any resemblance between the above views and those of my<br>employer, my terminal, or the view out my window are purely<br>coincidental. <br>Any resemblance between the above and my own views is non-deterministic.<br><br> The question of the existence of views in the absence of anyone to hold<br>them<br>is left as an exercise for the reader. The question of the existence of<br>the reader<br> is left as an exercise for the second god coefficient. <br>(A discussion of non-orthogonal, non-integral polytheism is beyond the<br>scope of this article.)<br><br><br><br> --- On Wed 07/21,  < FlexibleLearning at aol.com > wrote:<br>From:  [mailto: FlexibleLearning at aol.com]<br>To: use-revolution at lists.runrev.com<br>Date: Wed, 21 Jul 2004 11:49:24 EDT<br>Subject: Re: on saveStackRequest not working?<br><br> <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><br><br>_______________________________________________<br>Join Excite! - http://www.excite.com<br>The most personalized portal on the Web!<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 mailing list