repeat with i = 1 to the number of members of castlib 1
But won't this miss some if he has any empty cast slots between members? If he has something in cast member 1, nothing in member 2, and something in 3, I assume the above code would return "2", but he would need to go through slot 3 to test all of his cast members.
The way I've done it, even though it's imprecise, is: (and this is assuming you aren't adding cast members at runtime with the chance of going past slot 512)
repeat with m=1 to 512
if member(m).type<>#EMPTY then
-- do search here
end if
end repeat--
Charlie Fiskeaux II Media Designer Cre8tive Group cre8tivegroup.com
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
