LiveCode 8.1 and the Filter enhancements...
Richard Gaskin
ambassador at fourthworld.com
Wed Sep 14 19:21:46 EDT 2016
Monte Goulding wrote:
> Actually what you are describing is probably better implemented with
> the by clause I have suggested here:
> http://quality.livecode.com/show_bug.cgi?id=18309
>
> You could then:
>
> filter elements of tArray by each[“col2”] is “some”
>
> Or alternatively if you need match “something” and “somewhere”
>
> filter elements of tArray with “some*” by each[“col2”]
>
> Or if you need to do something interesting:
>
> filter elements of tArray by someFunction(each)
>
> function someFunction pArray
> return pArray[“col2”] is “some"
> end someFunction
Would it be worthwhile considering some form of XQuery for that so we
could do ranges and other nifty things?
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list