check if handler exist before using it

xavier.bury at clearstream.com xavier.bury at clearstream.com
Fri Nov 9 10:26:31 EST 2007


That is as generic and simple as it gets.

No parsing needed - just if "on getit" is in the script of mycontrol then 
do it

For protected stacks, i have no idea as i dont ever protect them... 
I guess that once the password is entered, it's the same...

cheers
---------------------=---------------------
Xavier Bury
Clearstream Services
TNS NT LAN Server


use-revolution-bounces at lists.runrev.com wrote on 09/11/2007 16:21:21:

> 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,
> >
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-----------------------------------------
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER


More information about the use-livecode mailing list