System.Variants.TCustomVariantType.VarDataCast

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

Performs a cast from one Variant type to another.

Call VarDataCast from the implementation of a TCustomVariantType descendant to perform casts on the data from another Variant type to the type specified by the VarType property. Do not use VarDataCast as the entire implementation of the Cast method, as this will lead to a circular reference.

Dest returns the result of the cast.

Source is the TVarData record of another Variant type that is to be converted.

See Also