Documentation on Dispatch

Bleiler, Timothy bleiler at buffalo.edu
Tue Jan 10 18:54:19 EST 2017


Another feature of “dispatch” that is undocumented is that it can be used with call by reference variables. The variables passed as call by reference can also be arrays, which can come in handy sometimes.

Example:

on mouseUp
   Put "27" into tTemp
   Dispatch  "AdjustSetting" with tTemp
   # now tTemp = 62
   put tTemp 
end mouseUp

on AdjustSetting @pSetting
   Add 35 to pSetting
end AdjustSetting


More information about the use-livecode mailing list