New(ish) option on the filter command

-hh hh at hh.on-rev.com
Fri Jul 15 19:22:11 EDT 2016


Usually one would do
put cr & resultOfFilter2 after resultOfFilter1

So the problem could be:

What should "filter .. after tVar" exactly do?
Simply concatenate?
Or use the current linedelimiter as "connector"?


Alex Tweedly wrote
> 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.
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list

> use-livecode at .runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/New-ish-option-on-the-filter-command-tp4706763p4706765.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list