Capture the Trig Function from an Option Menu Button
Roger Guay
irog at mac.com
Sat Dec 8 22:52:59 EST 2012
Please forgive my ignorance here, Mark, but are you suggesting another way of doing this kind of thing?
Thanks,
Roger
On Dec 8, 2012, at 11:15 AM, Mark Wieder <mwieder at ahsoftware.net> wrote:
> Jim-
>
> Saturday, December 8, 2012, 10:11:31 AM, you wrote:
>
>> But could you tell me how this "mouseUP" handle fails to do the job?
>
> Well, it's not nearly as hard to read, for one thing. But seriously,
> the use of lambda functions (google it) can provide a degree of
> flexibility in code and help prevent coding errors. For instance, to
> add the arctan() to your example you'd have to add a new line to the
> option control, then add a new case statement to the switch construct
> in the mouseUp handler. Possibly you could make a mistake when cutting
> and pasting, forgetting to insert a break statement, etc. Using the
> redirected form all you'd need to do is add the new line to the option
> control.
>
> --
> -Mark Wieder
> mwieder at ahsoftware.net
>
>
> _______________________________________________
> 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