List of handlers
Peter M. Brigham, MD
pmbrig at gmail.com
Fri Sep 9 22:09:44 EDT 2011
The filter with "end*" will pick up "end if" and "end repeat" and "end try" as well.
-- first:
replace "end if" with empty in tList
replace "end repeat" with empty in tList
replace "end try" with empty in tList
-- then
filter tList with "end*"
replace cr & "end " with cr in tList
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Sep 9, 2011, at 8:33 PM, Phil Davis wrote:
> Or try this:
>
> put script of <your control> into tList
> filter tList with "end " -- EVERY handler ends this way
> replace (cr & "end ") with cr in tList -- remove 'end' from each line
> sort lines of tList -- if you like
> put tList
>
>
> Phil Davis
>
>
> On 9/9/11 5:05 PM, Roger Eller wrote:
>> On Fri, Sep 9, 2011 at 7:50 PM, Chip Thomas<livecode.list at gmail.com> wrote:
>>
>>> Hey all, is there a way to get a list of handlers within a control?
>>>
>>> Or see if a handler/function exists?
>>>
>>> Thanks!
>>
>> put the script of<your object here> into tHandList
>> filter tHandList with "*on"& space& "*" -- just for readability... could
>> also be "*on *"
>> answer tHandList
>>
>> put the script of<your object here> into tFuncList
>> filter tFuncList with "*function"& space& "*" -- just for readability...
>> could also be "*function *"
>> answer tFuncList
>>
>> ˜Roger
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list