Destroys the action and all controls associatied with the action
Type: Procedure
Parameters:
None
Syntax
Procedure Destroy
Description
The Destroy message destroys the cCJAction object or, more likely, the cCJMenuItem object. The message is augmented to destroy the COM action and all COM controls associated with this object. It is possible that more than one control will be associated with an action object. This occurs when the users are allowed to customize their commandbar system.
Note: | You should always deactivate objects before destroying them. Active objects are objects that have received (directly or indirectly) the Activate message. You can test with Active_State if an object is active. You can deactivate an active object by sending Deactivate to the object. |