Lingo Dictionary > A-C > activeCastLib |  |

activeCastLib

Syntax

    the activeCastLib

Description

System property; indicates which cast was most recently activated. The `activeCastLib` property's value is the cast's number.

The `activeCastLib` property is useful when working with the `selection castLib` property. Use it to determine which cast the selection refers to.

This property can be tested but not set.

Example

These statements assign the selected cast members in the most recently selected cast to the variable `selectedMembers`:

    castLibOfInterest = the activeCastLib
    selectedMembers = castLib(castLibOfInterest).selection

An equivalent way to write this is:

    selectedMembers = castLib(the activeCastLib).selection