[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.Release

Marks the form for destruction.

Declaration

Source position: forms.pp line 733

public procedure TCustomForm.Release;

Description

Release is a procedure used to request destruction of the current form instance.

Release checks for a TApplication instance in the Application singleton. When it is assigned (contains a value other than Nil), its ReleaseComponent method is called to free the form instance by posting an asynchronous application message. When Application is not assigned, the Free method is called to destroy the form instance.

See also

TApplication.ReleaseComponent

  

Safely destroys a component used in the application.

TCustomForm.Destroy

  

Destructor for the class instance.

Application

  

The TApplication singleton.


Version 3.2 Generated 2024-02-25 Home