Activating a Function in a Different Stack
Dar Scott
dsc at swcp.com
Sun Oct 29 21:02:42 EST 2006
On Oct 29, 2006, at 6:13 PM, Marielle Lange wrote:
> What is exactly the scope of this "the result"?
> According to the doc: "The result function is set to empty when the
> current handler finishes executing."
I have tried grabbing 'the result' in logging functions, but found I
needed to pass it as a parameter. In most cases, I get the result in
the line following the command that generated it.
I'm not sure, but I think 'the result' is set to empty at the _start_
of handlers and of some built-in functions and commands.
Note this:
**********************
on mouseUp
test
put the result
end mouseUp
on test
put f(5) into z
put 2 into y
end test
function f x
return x+x
end f
**********************
Upon click 10 is put into the message box.
Dar
More information about the use-livecode
mailing list