Capture the Trig Function from an Option Menu Button

Mark Wieder mwieder at
Sat Dec 8 13:15:54 CST 2012


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

-Mark Wieder
 mwieder at

More information about the use-livecode mailing list