Lingo Dictionary > L-N > number of members

 

number of members

Syntax

the number of members of castLib whichCast

Description

Cast member property; indicates the number of the last cast member in the specified cast.

This property can be tested but not set.

Example

This statement displays in the Message window the type of each cast member in the cast Central Casting. The number of members of castLib property is used to determine how many times the loop repeats.

repeat with i = 1 to the number of members of castLib("Central Casting")
		put "Cast member" && i && "is a" && member(i, "Central Casting").type
	end repeat