check if handler exist before using it
Thierry
00bioarchimed at free.fr
Fri Nov 9 10:21:21 EST 2007
Thanks Xavier,
Do you mean you're parsing the text of the script ?
But then how do you do, if you have a protected stack,
where the text script is not available anymore ?
ps: i'm looking for a generic method.
Regards,
Thierry
> Hi Thierry,
>
> I usually check to see if "on handlername" is in the script of....
>
> this works for on handlers and functions too... Not for setprop mind
> you...
>
> If you really want to be sure, you can also check "end handlername"
>
> cheers
>
>> 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.
>>
>> Thanks for enlightenment,
>
More information about the use-livecode
mailing list