filter command

Ken Ray kray at sonsothunder.com
Wed Apr 10 11:54:02 EDT 2002


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: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Michael Foy" <mike at essex-web.com>
To: <use-revolution at lists.runrev.com>
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 <yvescoppe at skynet.be>
> To: <use-revolution at lists.runrev.com>
> 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 : yvescoppe at skynet.be
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the use-livecode mailing list