RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.Destroy Destructor

Destroys an instance of TField.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TField();

Do not call Destroy directly in an application. Destroy is called automatically by the dataset that owns the field component, and applications never need to call it explicitly. If an application creates a descendant of TField without an owner, it should call Free instead of Destroy, to guard against nil values. 

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!