New(ish) option on the filter command

Alex Tweedly alex at tweedly.net
Fri Jul 15 19:49:09 EDT 2016


OK, so it's not that new - it was added in 6.1 :-)

filter now allows you to specify a "target container", e.g.

   filter myVar with "*.livecode"  into tStacks


Would it be a reasonable enhancement request to allow not just "into", 
but also "after" and "before" ?

e.g.

  put files() into t

  filter t with "*.jpg" into tFiles

  filter t with "*.jpeg" after tFiles

etc.

btw - if you are hopeful and just try the "after variant", it doesn't 
give you an error - it simply ignores the "after targetContainer" part, 
and filters the source container. Seems to me that's a bug - anyone 
agree and I'll enter it as such ?

-- Alex.








More information about the use-livecode mailing list