Documentation on Dispatch

Richard Gaskin ambassador at fourthworld.com
Tue Jan 10 18:26:26 EST 2017


Monte Goulding wrote:

 > Try this:
 >
 > on mouseUp
 >  dispatch function "foo" to me with 1,2
 >  put the result
 > end mouseUp
 >
 > function foo p1, p2
 >  return p1 + p2
 > end foo

Yep, it works.

So it's not so much wrapping it per se, just calling it directly by 
adding the "function" specifier to "dispatch".

Interesting.  Thanks.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list