共用方式為


Destroy Event

Occurs when an object is released.

PROCEDURE Object.Destroy
[LPARAMETERS nIndex]

Parameters

  • nIndex
    Uniquely identifies a control if it is in a control array.

Remarks

The Destroy event for a container object triggers before the Destroy event for any of its contained objects; the container's Destroy event can refer to its contained objects before they are released.

See Also

AddObject Method | CREATEOBJECT( ) | Init Event | RELEASE | QueryUnload Event | Unload Event | Release Method

Applies To: ActiveDoc Object | CheckBox | ComboBox | CommandButton | Container Object | Control Object | Cursor | Custom | DataEnvironment | EditBox | Form | FormSet | Grid | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | Page | PageFrame | ProjectHook Object | Relation | Session Object | Shape | Spinner | TextBox | Timer | ToolBar