Björnke-

Sunday, August 16, 2009, 2:52:01 PM, you wrote:

> yes it's more complex. among other things i want to divide the data at
> the empty line into two vars, delete the next line (if another  
> condition is met), and put part of the lines (not all) of the parts
> before the empty line into an array (tho i can use lineoffset for  
> those!). mark's solution can do what i want, but it's certainly not
> very straightforward.

Well, why didn't you say so? <g>

put 1 into x
repeat for each line tEmptyLine in theContent
  if the number of words in tEmptyLine is 0 then
    exit repeat
  end if
  add 1 to x
end repeat
put x

(use "the number of tokens" if you also want to ignore lines that are
just comments)

-- 
-Mark Wieder
 mwie...@ahsoftware.net

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to