OK, here it is:
Like the last one, start with the field with the smallest number of lines
(in this case "field 1"):
on mouseUp
put "" into tResult
set the wholeMatches to true
repeat for each line i in field 1
if lineOffset(i,field 2) = 0 then
put i into line (the number of lines of tResult)+1 of tResult
end if
end repeat
answer tResult
end mouseUp
Note that the only difference between this code and the last one is the
changing of <> to =.
Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
----- Original Message -----
From: "yves COPPE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 11:43 AM
Subject: Re: filter command
> Hi everybody
>
>
> Thank you for your answers.
>
> The script from Ben doesn't give the right answer.
> Sorry.
>
> The faster for comparing big files is the script of Ken
>
> The script of Dave is the most interessant, but the order of the
> lines is totaly changed.
>
> So I shall use the script of Ken.
>
> Now, my mind is a little wrong.
> So I ask something else :
>
> I want the same but now the comparison is not based on "AND" but on "NOT"
> so I want the lines only in fld One that are NOT in fld Two
>
> Thanks.
> --
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution