Please enable JavaScript to view this site.

ESL Documentation

Action Statement

Delete an object.

delete {OBJECT_NAME|CLASS_NAME}

OBJECT_NAME

The identifier for an object.

CLASS_NAME

The identifier for a class of objects.

Description

The delete action statement deletes the object itself, its contents, and all of its children.

Before you delete an object, you must first delete the object (as well as its children) from any classes of which it is a member, using the delete from class statement. If you do not, performing an action on the class will produce an error during runtime.

Example

 

response to ChoiceStart_Key

 delete RedKey

 

response to ChoiceCtd_PB

 delete BlueKey in Panel_GR

See Also

clear Action Statement

delete from class Action Statement