Little Transcript Help Over Here, Please
slylabs13 at mac.com
Thu Jul 3 01:11:55 EDT 2008
You seem to be declaring a global inside a handler and then trying to
access the global outside the handler without declaring the global.
Common practice is to declare global at the top of the script, and
then it is accessible to any handler in that script.
-- stack script
put "hey" into bobtest
put bobtest -- the message box
The above works because the scope of the global is the stack script
itself, NOT the handler, whose scope expires with the termination of
Hope this helps
Calvary Chapel CM
Sent from iPhone
On Jul 2, 2008, at 17:56, Mikey <mikeythek at gmail.com> wrote:
> If I do the following in a script:
> put "north" into theButton
> global status
> put the hilite of bg button theButton into status
> and check status, I get the value I expect, namely the hilite of the
> button North.
> However, if I
> if the hilite of bg button theButton then
> if (the hilite of bg button theButton) then
> I get a message execution error: Error Description: Chunk: no such
> So if I combine both of these, status gets the value I would expect,
> but I
> still get the error.
> So what's wrong with my code, please?
> Diogenes - "What I like to drink most is wine that belongs to
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode