Lingo Dictionary > S > selection (cast property) |  |

selection (cast property)

Syntax

    castLib (whichCast).selection
    the selection of castLib whichCast
    set the selection of castLib whichCast =[ [ startMember1 , endMember1 ], \
    {[ startMember2 , endMember2 ], [ startMember3 , endMember3 ]...]}
    castLib(whichCast). selection =[ [ startMember1 , endMember1 ], \
    {[ startMember2 , endMember2 ], [ startMember3 , endMember3 ]...]}

Description

Cast property; determines which cast members are selected in the specified Cast window. The range appears as a list of the starting and ending cast member numbers for the selected range. You can include more than one selection by specifying additional ranges of cast members. (To specify more than one selection, Control-drag (Windows) or Command-drag (Macintosh).

This property can be tested and set.

Example

This statement selects cast members 1 through 10 in castLib 1:

    castLib(1).selection = [[1, 10]]

This statement selects cast members 1 through 10, and 30 through 40, in castLib 1:

    castLib(1).selection = [[1, 10], [30, 40]]