Destructor

Description

Occurs when the user object or control is destroyed, immediately after the Close event of a window.

Event ID

Event ID

Objects

pbm_destructor

All objects

Arguments

None

Returns

Long. Return code choices (specify in a RETURN statement):

Usage

When a window is closed, each control’s Destructor event destroys the control and removes it from memory. After they have been destroyed, you can no longer refer to those controls in other scripts. If you do, a runtime error occurs.

See also