How to use an array to solve the following...

Glen Bojsza gbojsza at gmail.com
Tue Feb 21 04:37:20 EST 2012


I was thinking more along the lines (no pun intended) of

- find line number of starting value (for example line 578 )

- find line line number of ending value (for example 12125)

put lines 578 to 12125 into results

Can this be done verses looping through each line since we know the xs
column is sequentially in order?



On Tue, Feb 21, 2012 at 1:54 AM, Geoff Canyon Rev <gcanyon+rev at gmail.com>wrote:

> Depends on how big the list is. Unless there's a faster method than the one
> I used (or you're using slower hardware than I am), you should be okay up
> to about 100,000 rows using something like:
>
>   repeat for each line L in the keys of yourArray
>      if L > 20 and L < 60 then put L & cr after R
>   end repeat
> -- 20 and 60 are your filter values,
> -- R is your result set
>
>



More information about the use-livecode mailing list