Please enable JavaScript to view this site.

ESL Documentation

Action Statement

Remove an object, or a class of objects, from a class.

delete {OBJECT_NAME|CLASS_NAME} from class DESTCLASS_NAME

OBJECT_NAME

The identifier for an object.

CLASS_NAME

DESTCLASS_NAME

The identifier for a class of objects.

Description

Deleting an object, or class of objects, from a class has no effect on the existence or attributes of the object itself; the object still exists. The only results of deleting an object from a class are that: selecting the specified object no longer invokes the responses that were defined for the class; and any action statements that reference the class no longer affect that object.

Note that a member cannot be deleted from a class that is currently involved in a for each member loop.

When an object is a member of more than one class, deleting it from one class has no effect on its membership in other classes.

Example

 

response to Omit_PB

 delete Rolls from class Luxury_cars_CL

 

response to Clear_Key

 delete Fuels in Expenses from class Heating_costs_CL

 

response to RemoveAllMembersFromClass_PB

 delete Fruits from class Fruits_CL

See Also

class Definition

members Special Inquiry Built-in Function