RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomVariantType.VarDataCast Method

Performs a cast from one System::Variant type to another.

Pascal
procedure VarDataCast(var Dest: TVarData; const Source: TVarData);
C++
__fastcall VarDataCast(TVarData Dest, const TVarData Source);

Call VarDataCast from the implementation of a TCustomVariantType descendant to perform casts on the data from another System::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 System::Variant type that is to be converted. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!