check if handler exist before using it

Jim Ault JimAultWins at yahoo.com
Fri Nov 9 11:47:15 EST 2007


You could use 

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

Jim Ault
Las Vegas

On 11/9/07 6:57 AM, "Thierry" <00bioarchimed at free.fr> wrote:

> Hi,
> 
> As there is the rev function:
>            exists( an object ) or  there is .... ,
> 
> is there something like
>             exists( <whateverFunction> )  in <anyObject>
> 
> Well, i know i could parse the scripts ....
> but is there a more simple way ?
> 
> By the way, I need this to be called from inside an external.





More information about the use-livecode mailing list