Syntax: mouseUp mouseButtonNumber

Mark Wieder ahsoftware at sonic.net
Thu Sep 22 20:26:18 EDT 2016


On 09/22/2016 03:39 PM, Roger Eller wrote:

> Possibly.  But I learned long ago to never assume even the most basic
> knowledge because "brain-farts" are a real problem.  ;)

<g> Very much agreed.

But this isn't a problem with the mouseUp handler per se. When you 
declare a handler ("on xxx" or "function xxx") you can't give it 
explicit parameters at that time. And the script compiler properly 
complains if you do. Instead you give the parameter a name and can then 
use the name in the handler's code to do something, as in Mike's 
example. All LC handlers work exactly this way, and the mouseUp handler 
is no exception.

-- 
  Mark Wieder
  ahsoftware at gmail.com






More information about the use-livecode mailing list