Data Input History

Sarah Reichelt sarah.reichelt at gmail.com
Thu Dec 22 17:40:55 EST 2005


> I've been trying to figure out how to destroy the data I've input into a
> field after I close the stack.  I'm closing the stack using:
>
> set the destroyStack of this stack to true
>   close stack "ProvWiz"
>
> When I open the stack back up the data that I've input is still there.
> How do I destroy the data in the fields when I close the stack?

destroyStack is a property that only needs to be set once. It means
that closing a stack removes it from memory. It does not mean that any
data entered is to be destroyed. If the stack has been saved, the data
entered before the save will still be there next time you open the
stack.

If you are making a standalone, and do not set the substacks to be
separate files, no data will be saved, so that may be all you need.

However when working in the Rev environment, and before building you
will need to empty the data fields. Many people write a handler called
"stripNship" or some variation of that which sets the stack the way
you want it to be when first opened. It can empty fields, set button
hilites etc and you can run it when closing the stack, before building
or on preOpenStack.

Cheers,
Sarah



More information about the use-livecode mailing list