How to create a List of My Functions and My Commands
Dick Kriesel
dick.kriesel at mail.com
Sun Sep 28 01:21:52 EDT 2014
On Sep 27, 2014, at 8:34 PM, Kay C Lan <lan.kc.macmail at gmail.com> wrote:
> At this stage it looks like I have to step through each object,
> extract each script and then parse out the handler names; which of
> course is exactly what LC does extremely quickly and efficiently, but
> not as quick as if there is a command/function that already does it
> ;-)
Hi, Kay.
For each object, to discover all its available handler names, their types, and their line numbers in the script, you can use function handlerList( tObject, tIncludeBehaviorHandlers, tIncludePrivateHandlers ). So if you want to include behavior handlers and private handlers of tObject, the expression is handlerList( tObject, "true", "true" ). I've found code in the IDE that invokes function handlerList, but I haven't found the code for the function itself.
Or you can use function revAvailableHandlers( tObject ).
-- Dick
More information about the use-livecode
mailing list