System.Variants.TCustomVariantType.SimplisticClear

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SimplisticClear(var V: TVarData);

C++

void __fastcall SimplisticClear(TVarData &V);

Properties

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

Description

Clears a TVarData record by re-initializing it.

Call SimplisticClear from the implementation of a TCustomVariantType descendant to clear the TVarData record of a Variant of the custom type. This method should only be called if the TVarData record does not contain any members that must be freed.

SimplisticClear simply calls the VarDataInit method, which reinitializes the TVarData record passed as V.

See Also