itemDelimiter

Frank Leahy frank at backtalk.com
Thu Feb 12 21:28:23 EST 2004


On Friday, February 13, 2004, at 12:14  AM, 
use-revolution-request at lists.runrev.com wrote:

> If you have troubles determining how many paragraphs there are in a
> paragraph array then try this:
>    -----------------------
>    put 1 into countNum
>    repeat
>      put theParagraphArray[countNum] into zap
>      if zap = empty then
>        put (countNum - 1) into timesP
>        exit repeat
>      end if
>      add 1 to countNum
>    end repeat
>    -- timesP now contains the number of <p>...</p> sets that where 
> found.
>    -----------------------

An easier way to get the number of paragraphs would be:

put the keys of theParagraphArray into theKeys
put the number of lines of theKeys into numParagraphs

-- Frank



More information about the use-livecode mailing list