System.Variants.TCustomVariantType.VarDataCopy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure VarDataCopy(var Dest: TVarData; const Source: TVarData);

C++

void __fastcall VarDataCopy(TVarData &Dest, const TVarData &Source);

Properties

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

Description

Copies the data from one built-in Variant type to another.

Call VarDataCopy from the implementation of a TCustomVariantType descendant to clear the data from a destination Variant and then copy the TVarData record from another Variant. VarDataCopy can handle data that is stored indirectly (when the VType field includes varByRef). Do not use VarDataCopy as the entire implementation of the Copy method, as this will lead to a circular reference.

Dest is the TVarData record that receives the copy.

Source is the TVarData record to be copied.

See Also