Frames

Removing Slots


RemoveSlot(frame, 'slotName);


To remove a slot, you use the RemoveSlot function. For example, consider the frame:

x := {a: 1, b: 2};
To remove the slot a, call RemoveSlot this way:

RemoveSlot(x, 'a);
Notice the single quote (') before the slot name; it is required. It specifies that a is a symbol and as such is not to be evaluated. For information on symbols, see "Symbols" on page 53.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996