Lingo Dictionary > L-N > number (cast property) |  |

number (cast property)

Syntax

    the number of castLib whichCast

Description

Cast property; indicates the number of the specified cast. For example, 2 is`` the`` castLib number`` for Cast 2.

This property can be tested but not set.

Example

This repeat loop uses the Message window to display the number of cast members that are in each of the movie's casts:

    repeat with n = 1 to the number of castLibs
    	put castLib(n).name && "contains" && the number of \
    	members of castLib(n) && "cast members."
    end repeat