Counting lines in a list field?

Jim Ault JimAultWins at yahoo.com
Thu Apr 12 15:24:10 EDT 2007


On 4/12/07 12:03 PM, "Richmond Mathewson" <geradamas at yahoo.com> wrote:

> Sorry, this is probably fairly basic!
> 
> How does one count the number of lines in a list
> field?
> 
> Feel a terrible fool that I don't know . . .
> 
Try, 

put the number of lines in fld listOfFlowers into msg

--and more accurately,

put the number of lines in (fld listOfFlowers & null)
--in case the last line is empty and you want it to count

Jim Ault
Las Vegas





More information about the use-livecode mailing list