Re: Question About PreOpenStack

2011-09-12 Thread Gregory Lypny
Thanks Craig, Your thoughts on this are much appreciated. Darn right about the dangers! Gregory On Mon, Sep 12, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote: > Gregory. > > > Glad to see you have worked it out. It is a subtle danger, that other > messages can insinuate the

Re: Question About PreOpenStack

2011-09-12 Thread Gregory Lypny
Thanks Bob, Another good tip to add to my notebook! Unintended re-initialization can bring disastrous consequences. This, I have discovered. Sigh. Gregory On Mon, Sep 12, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote: > One of the things I do to prevent re-initialization

Re: Question About PreOpenStack

2011-09-12 Thread Bob Sneidar
One of the things I do to prevent re-initialization of a card or stack is I create a global, and upon successful initialization I set it to true. I check it's value before initializing and only call the initialization handler if the global is not set to true. This has the benefit of being able t

Re: Question About PreOpenStack

2011-09-11 Thread dunbarx
ges. Craig Newman -Original Message- From: Gregory Lypny To: use-livecode Sent: Sun, Sep 11, 2011 10:44 am Subject: Re: Question About PreOpenStack Hi Craig, I had posted this right (see below) after you in message 21. On reflection, the behaviour makes sense, and so does Mark

Re: Question About PreOpenStack

2011-09-11 Thread Gregory Lypny
Hi Craig, I had posted this right (see below) after you in message 21. On reflection, the behaviour makes sense, and so does Mark’s suggestion that I move the main stack’s OpenStack handler to the card script. Gregory > Hi Mark and Jacqueline, > > The substacks had PreOpenStack handlers that

Re: Question About PreOpenStack

2011-09-11 Thread Gregory Lypny
Good stuff. Thank you, Mark. I’ll give that a shot. Regards, Gregory On Sun, Sep 11, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote: > Hi Gregory, > > Instead of putting an openStack handler in every substack, it is much easier > to move the openStack in your main stack from

Re: Question About PreOpenStack

2011-09-11 Thread Mark Schonewille
Hi Gregory, Instead of putting an openStack handler in every substack, it is much easier to move the openStack in your main stack from stack level to card level. If the openStack handler is in a card script, it won't be triggered by opening a substack. -- Best regards, Mark Schonewille Econo

Re: Question About PreOpenStack

2011-09-11 Thread Gregory Lypny
Hi Mark and Jacqueline, The substacks had PreOpenStack handlers that called a library stack and sometimes emptied out some fields, but what they did not have OpenStack handlers. The absence of OpenStack handlers appears to have been the problem because, after the the sub-stack executes its own

Re: Question About PreOpenStack

2011-09-10 Thread dunbarx
-Original Message- From: J. Landman Gay To: How to use LiveCode Sent: Fri, Sep 9, 2011 8:48 pm Subject: Re: Question About PreOpenStack On 9/9/11 10:53 PM, Mark Wieder wrote: > I went back and read the original posting. It's not clear to me that > the preOpenStack han

Re: Question About PreOpenStack

2011-09-09 Thread J. Landman Gay
On 9/9/11 10:53 PM, Mark Wieder wrote: I went back and read the original posting. It's not clear to me that the preOpenStack handler in the substack isn't firing, just that the preOpenStack handler in the mainstack *is* firing. I could be misremembering, as they say. Gregory can be the decide

Re: Question About PreOpenStack

2011-09-09 Thread Mark Wieder
Jacque- Friday, September 9, 2011, 7:24:40 PM, you wrote: > There has been some good info about how to block a preOpenStack handler > from falling through to the mainstack, but I'm not sure that was the > question. Gregory will have to verify, but as I understood it, he has a > valid preOpenStack

Re: Question About PreOpenStack

2011-09-09 Thread J. Landman Gay
There has been some good info about how to block a preOpenStack handler from falling through to the mainstack, but I'm not sure that was the question. Gregory will have to verify, but as I understood it, he has a valid preOpenStack handler in a substack but it isn't executing. Instead, he gets

Re: Question About PreOpenStack

2011-09-09 Thread Bob Sneidar
Really?? I was under the impression that preOpenStack would not fire from the first card because the stack was not open yet. You learn something new every day! Bob On Sep 9, 2011, at 12:09 PM, Scott Rossi wrote: > 3) move your preOpenStack handlers from the script of your mainstack into > the

Re: Question About PreOpenStack

2011-09-09 Thread Peter M. Brigham, MD
The other way of handling this is to have a mainstack that is really just a splash stack + library, it doesn't even have to show itself on startup (put "on preopenstack; hide this stack; end preopenstack" into the script of card 1 of the mainstack). Then put whatever you want for preopenstack be

Re: Question About PreOpenStack

2011-09-09 Thread Jonathan Lynch
I always put empty preopenstack, openstack, preopencard, and opencard handlers for my substacks. I also put in a closestack handler in the substack that tells the substack to close. This seems like it should just be a standard thing to do when making substacks. This will prevent any stray messages

Re: Question About PreOpenStack

2011-09-09 Thread J. Landman Gay
On 9/9/11 2:09 PM, Scott Rossi wrote: Recently, Gregory Lypny wrote: I have a main stack with a PreOpenStack handler and sub-stacks with PreOpenStack handlers. Why is it that when I click a Go button in the main stack that opens a sub-stack, the PreOpenStack handler in the main stack is execut

Re: Question About PreOpenStack

2011-09-09 Thread Mark Wieder
Scott- Friday, September 9, 2011, 12:09:57 PM, you wrote: > 3) move your preOpenStack handlers from the script of your mainstack into > the card script of the first card of your mainstack Indeed, the documentation states that the preOpenStack message is "sent to the destination card when you ope

Re: Question About PreOpenStack

2011-09-09 Thread Scott Rossi
Recently, Gregory Lypny wrote: > I have a main stack with a PreOpenStack handler and sub-stacks with > PreOpenStack handlers. Why is it that when I click a Go button in the main > stack that opens a sub-stack, the PreOpenStack handler in the main stack is > executed? Messages from substacks auto

Re: Question About PreOpenStack

2011-09-09 Thread Mark Schonewille
Hi Gregory, That's called the message hierarchy. This is discussed in the user manual. Messages go from front scripts to button/field to background, card, substack, mainstack, stack in use to back scripts. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the cl

Re: Question About PreOpenStack

2011-09-09 Thread dunbarx
ssing "PreOpenstack" in the substack handler are you? Craig Newman -Original Message- From: Gregory Lypny To: LiveCode Sent: Fri, Sep 9, 2011 10:34 am Subject: Question About PreOpenStack I have a main stack with a PreOpenStack handler and sub-stacks with PreOpenStack ha

Question About PreOpenStack

2011-09-09 Thread Gregory Lypny
I have a main stack with a PreOpenStack handler and sub-stacks with PreOpenStack handlers. Why is it that when I click a Go button in the main stack that opens a sub-stack, the PreOpenStack handler in the main stack is executed? Gregory ___ use-live