>Does anybody know how to count members in a list?
Hi, Yo--
Here's one quick solution:
on startMovie
MyList=[#d,#a,#b,#c,#b,#a]
a = 0
b = 0
c = 0
d = 0
x = MyList.count
repeat with i = 1 to x
case MyList[i] of
#a: a = a + 1
#b: b = b + 1
#c: c = c + 1
#d: d = d + 1
end case
end repeat
put "a:"&& a
put "b:"&&b
put "c:"&&c
put "d:"&&d
end
Cordially,
Kerry Thompson
Learning Network
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]