check if handler exist before using it

Mark Wieder mwieder at ahsoftware.net
Fri Nov 9 20:01:43 EST 2007


Jim-

> on try
>  doThisFunction()
> catch errString
>  --function not available, take action
> end try

I use this quite often, but notice that it has the drawback of actually 
performing doThisFunction(), which may not be what you have in mind if you 
just want to see if it's present.

-- 
 Mark Wieder
 mwieder at ahsoftware.net






More information about the use-livecode mailing list