List of handlers

Peter M. Brigham, MD pmbrig at gmail.com
Fri Sep 9 22:14:27 EDT 2011


On Sep 9, 2011, at 8:33 PM, I wrote:

> 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

I forgot: you have to append a cr to the beginning of tList first:

filter tList with "end*"
replace cr & "end " with cr in (cr &tList)
-- will catch first line
delete char 1 of tList -- it's a cr

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list