Lingo Dictionary > D-F > erase member |  |

erase member

Syntax

    member(whichCastMember).erase()
    erase member whichCastMember

Description

Command; deletes the specified cast member and leaves its slot in the Cast window empty.

For best results, use this command during authoring and not in projectors, which can cause memory problems.

Example

This statement deletes the cast member named Gear in the Hardware cast:

    member("Gear", "Hardware").erase()

Example

This handler deletes cast members start through finish:

    on deleteMember start, finish
    	repeat with i = start to finish
    		member(i).erase()
    	end repeat
    end on deleteMember

See also

`new()`