Actually, I'd take the list that had the longer number of lines and do:

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

Just my $0.02,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Michael Foy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 10:14 AM
Subject: Re: filter command


> how something along the lines
>
> sorry don't know rr enough to do the scripting, but here is some pseudo
code
> put 1 into i
> repeat
>     if line i of fld1 =line i of fld 2 then
>         put line i of fld1 & crfl after fld 3
>     end if
> until last line of  shortest field
>
> ----- Original Message -----
> From: yves COPPE <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 10, 2002 3:05 PM
> Subject: filter command
>
>
> > Hello,
> >
> >
> > I have two flds. There are list flds.
> > I'd like to put in a variable the lines which are common to the two flds
> >
> > example
> >
> > Fld 1
> >
> > one
> > three
> > five
> >
> >
> > Fld 2
> >
> > One
> > two
> > three
> > four
> >
> >
> > the variable must contain :
> >
> > one
> > three
> >
> > How to proceed ?
> >
> >
> > thanks.
> > --
> > Greetings.
> >
> > Yves COPPE
> >
> > Email : [EMAIL PROTECTED]
> > _______________________________________________
> > 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
>


_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to