to find the first numeric line?

Jim Lambert jiml at netrin.com
Fri Feb 1 13:22:53 EST 2013


Mark wrote:

> have you taken a look at the FILTER command?
> filter list with "[1-9]*"

That is a possible approach, like this:

function getNumericLineStart temp
   put the number of lines of temp into totalLines
   sort numeric temp
   filter temp with "[1-9]*"
   put the number of lines of temp into totalLinesNumericStart
   return totalLines-totalLinesNumericStart
end getNumericLineStart

Not sure if this is any speedier than a repeat loop.

Jim Lambert




More information about the use-livecode mailing list