System.Variants.TCustomVariantType.Clear

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Clear(var V: TVarData); virtual; abstract;

C++

virtual void __fastcall Clear(TVarData &V) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Variants.pas
System.Variants.hpp
System.Variants TCustomVariantType

Description

Sets the data for this custom Variant type to a blank or unassigned value.

Override Clear to implement the way this custom Variant type represents a blank or unassigned value.

V is a TVarData record that represents the data from a Variant of this custom type that needs to be cleared.

In TCustomVariantType, Clear is an abstract method. Descendant classes must override this method to provide an implementation. If the custom Variant type stores its data in a manner that includes memory that needs to be freed, Clear should free that memory. Once any memory is freed, Clear can call the SimplisticClear method, which re-initializes the TVarData record, or set the VType field to varEmpty.

See Also