First Time Blues
rcozens at pon.net
Wed Jul 17 11:22:00 EDT 2002
I've been observing this problem for months, and though I can see
what is happening I'm no closer to a clue as to why than I was when
it first occurred:
* Library stack with database template substack.
* Database Utilities stack that starts using the library stack,
containing menuPick handlers to create a new db stack by cloning the
template a la Richard Gaskin's Employee Database & to open, backup,
and restore a database.
Problem: The first time a new database stack is opened (after
creation), it does NOT receive an openStack message. I note "after
creation", because the stack is opened and closed during the creation
process; but it still doesn't receive openStack the first time it is
opened after the creation handler quits.
I've placed answer dialogs in the preopenStack & openStack handlers,
and have confirmed that preopenStack runs to conclusion and openStack
is NEVER received... UNLESS the database has already been opened and
closed after it is created OR it is opened by a standalone instead of
the Rev Development engine.
I have been living with this because the utilities stack is meant to
be used as a standalone; however now I'm finding I cannot open a
database if the utilities stack's "Restore Database" menuItem is
run...both in Rev and with a standalone; so I think I need to get to
the bottom of this or look for a workaround.
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the Use-livecode