is among - problem
Steve Laming
steve.laming at ntlworld.com
Fri Nov 21 20:11:53 EST 2003
Ooops, 222 still gets deleted, so it would be better to explicitly test for
duplicates than rely on the addition test therefore:
>On MouseUp
> put false into found
> put "1,2,3" into search$
> -- sort field "myList"
> repeat with x = the number of lines in field "myList" down to 1
> put char 1 of line x of field "mylist" into test1
> put char 2 of line x of field "mylist" into test2
> put char 3 of line x of field "mylist" into test3
> If test1<>test2 And test1<>test3 AND test2<>test3 then
> If test1 is among the items of search$ and test2 is among the items
> of search$ and test3 is among the items of search$ then
> If found then
> delete line x of field "myList"
> beep
> else
> put true into found
>
>
> end if
> end if
> end if
> end repeat
>
>end MouseUp
I think that is now it!!!! (I hope)
Steve
More information about the use-livecode
mailing list