How to tell if a stack has been edited

Devin Asay devin_asay at byu.edu
Wed Mar 28 10:52:57 EDT 2007


On Mar 27, 2007, at 10:23 PM, Sarah Reichelt wrote:

> Is there any way to tell if the data in a stack has been edited? I
> don't want to have to keep track of every field and record any changes
> so I am hoping there is a hidden property somewhere that can tell me
> this. It has to work in a standalone, not just in the IDE.

This is just a wild thought, but maybe it would work. We know that  
you can store anything in a custom property, including a stack. What  
if, when you open a stack, you have an invisible stack that copies  
that stack into a custom prop. Then, at certain intervals, or after  
certain events, that same invisible stack copies the currently open  
stack into another custom prop. At that point you could either  
compare their sizes using a length function, or even check the two  
custom props for equality.

Seems possible.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list