filter

Bernard Devlin bdrunrev at gmail.com
Thu May 21 14:27:10 EDT 2009


put "one" & cr & "two" & cr & "owl" into tList

filter tList with "o*"

gives you

owl
one

Filtering that 2 line list with

filter tList with "t*"

will give you an empty list.  The first filter removed anything that
would match the 2nd filter, therefore the list is empty.

Bernard

On Thu, May 21, 2009 at 6:32 PM, Tom Cole <tom.cole at asu.edu> wrote:
> Does anyone know why I get no data in a variable when I filter more than
> once?
> In the following, either of the filters works alone with the other commented
> out, but together I get no data.
>
> on mouseup
>  put fld sortfield into cat
>
>  --FILTER #1
>  put "12/15/1971" into rat
>  filter cat with "*"&rat&"*"
>  put cat into fld sortfield
>
>    --FILTER #2
>  put "elliot and cooper roads" into dog
>  filter cat with "*"&dog&"*"
>  put cat into fld sortfield
>  put fld sortfield into cat
>
> end mouseUp
>
> Thanks
> Tom
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list