on startup and on shutdown
Frank Leahy
frank at backtalk.com
Sun Jan 11 14:50:15 EST 2004
Tom,
If you're trying to store the property into a stack that resides on the
CD, you're toast because the CD is read-only.
The only way to do what you want is to either:
1) Copy at least one stack to the user's disk and store the properties
there, or
2) Create a preferences file where you store the property data on the
user's disk, and read/write that prefs file on startup and shutdown.
As for using preOpenStack or a startup handler -- if you have a
preOpenStack handler in your main stack, then you'll have to have an
empty preOpenStack handler in each substack so that the main stack's
preOpenStack handler is overridden. Like this:
on preOpenStack
-- This overrides the main stack handler.
-- Do not call "pass preOpenStack" otherwise the main stack handler
will get called.
end preOpenStack
Best,
-- Frank Leahy
On Sunday, January 11, 2004, at 01:56 PM,
use-revolution-request at lists.runrev.com wrote:
>
> Either a custom prop can store info collected during use or if not,
> then a sep stack needs to do it????
> Which one?
More information about the use-livecode
mailing list