home stack

Jan Schenkel janschenkel at yahoo.com
Fri Feb 7 03:58:01 EST 2003


--- Jan Schenkel <janschenkel at yahoo.com> wrote:
> --- erik hansen <erikhans08 at yahoo.com> wrote:
> > --- Jan Schenkel <janschenkel at yahoo.com> wrote:
> > > The closest thing to a 'Home' stack for us now,
> > > is to store all those nifty handlers into a
> > separate
> > > library stack, and then insert its script into
> > > back at startup.
> > 
> > this is what i have never been able to do.
> > eventually it will be "oh, of course!"
> > 
> 
> Hi Erik,
> 
> It's not that hard, really. Just create a new stack,
> put some handlers and functions in its stack script,
> and then make them available by using
>   insert the script of stack "Foobar" into back
> From then on, messages, handlers and functions
> travel
> 'through' this script as well. It's a more advanced
> version of 'start using stack' because you can tweak
> the message path in a specific order.
> The only thing you have to make sure to avoid in the
> script, is any reference to 'me' as that's not going
> to be the stack anymore.
> 

Addendum: 
With 'insert script' you're not limited to stack
scripts, you can insert the script of _any_ control
into the message path that way. Very neat.

Suppose you have a field "Foobar" with script:
  on ellenFeiss
     beep 6
  end ellenFeiss

And you place it in the message path by
  insert script of fld "Foobar" into back

Whenever you type 'ellenFeiss' in the message box,
your computer will beep 6 times ; but don't worry, as
it's not Word, you won't lose your really good paper
;-)

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the use-livecode mailing list