Referencing

Arthur Urban aturban at qwest.net
Tue Jun 14 16:49:27 EDT 2005


> I have a field that contains a list of several fields that I 
> want to do a line count on.
> 
> FIELD UPDATELIST
> fld "exportdata" of stack "map"
> fld "sitename" of stack "map"
> ...
> ...
> 
> In my script I want to get the number of lines that each 
> field currently has
> 
> on mouseUp
> put fld UPDATELIST into uLists
> repeat for each line M in uLists
> put the number of lines in M
> end mouseUp
> 
> The result I get is
> 1

Is it possible that the last field in your list in fact has only 1 line in
it?

Looking at your repeat loop, things might be going by so fast in the message
box that you only get to see the last iteration. You might try:

   put the number of lines in M & "," after msg

Not sure of my syntax exactly, but I hope you see where I'm headed.



More information about the use-livecode mailing list