Can lineOffSet find last occurance?

Richard Gaskin ambassador at fourthworld.com
Fri Aug 30 15:37:00 EDT 2002


Bill Vlahos wrote:

> I need to process a subset of lines in a field which has been sorted.
> All of the group of lines I want are together because of the sort. What
> I'm doing now is using a repeat for each line command and checking each
> line to see if it contains what I'm looking for. This works fine but
> will eventually slow down with big data sets. I would like to use the
> repeat for each feature which includes the starting and ending lines.
> 
> The lineOffSet command neatly finds the first line of what I want but
> how can I find the last line? Can lineOffSet be made to start and the
> end?

The optional third param to the lineoffset funtion will let you specify a
starting point for the next iteration.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 2.0: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list