RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomVariantType.VarDataCast Method

Performs a cast from one 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 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!