On 9/9/11 7:14 PM, Peter M. Brigham, MD wrote:
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:
I forgot about that one in my original post also.
Phil
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
[email protected]
http://home.comcast.net/~pmbrig
_______________________________________________
use-livecode mailing list
[email protected]
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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode