Syntax: mouseUp mouseButtonNumber
Roger Eller
roger.e.eller at sealedair.com
Thu Sep 22 20:44:56 EDT 2016
If the syntax example had been pWhichBtn instead of mouseButtonNumber, I
"might" have recognized it as a parameter.
On Sep 22, 2016 8:26 PM, "Mark Wieder" <ahsoftware at sonic.net> wrote:
> 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
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list