Dispatch

Mark Wieder ahsoftware at sonic.net
Wed Aug 3 12:25:44 EDT 2022


On 8/3/22 09:14, Bob Sneidar wrote:
> One correction. If a value is returned by the handler that was called, the result will be that value.

Yeah - good catch. I meant to say the "it" value is three-state, not the 
"result".

dispatch someMessage
if it is not "unhandled" then...
or
if it is "passed" then...
or
if it is "handled" then...

and note that you can dispatch functions as well a commands, and the 
return value of the function will be in the result if "it" is not 
"unhandled".


-- 
  Mark Wieder
  ahsoftware at gmail.com



More information about the use-livecode mailing list