Data.DB.TDataSetField.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TDataSetField();

Properties

Type Visibility Source Unit Parent
destructor public
Data.DB.pas
Data.DB.hpp
Data.DB TDataSetField

Description

Destroys an instance of TObjectField.

Data.DB.TDataSetField.Destroy inherits from Data.DB.TObjectField.Destroy. All content below this line refers to Data.DB.TObjectField.Destroy.

Destroys an instance of TObjectField.

Do not call Destroy directly in an application. The destructor is called automatically by the dataset that owns the object field component, and applications never need to call it explicitly.

If an application creates a descendant of TObjectField without an owner, it should call Free instead of Destroy. Free checks that the field reference is not nil, and only then calls Destroy.

Destroy closes the dataset, deletes the instance of TObjectField from the dataset, and calls the inherited destructor.

See Also