System.Internal.VarHlpr.VariantCast
Delphi
procedure VariantCast(const src: Variant; var dst: Variant; vt: Integer);
C++
extern DELPHI_PACKAGE void __fastcall VariantCast(const System::Variant &src, System::Variant &dst, int vt);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Internal.VarHlpr.pas System.Internal.VarHlpr.hpp |
System.Internal.VarHlpr | System.Internal.VarHlpr |
Description
Performs a type-cast on a Variant.
VariantCast type-casts src to the desired type and returns the resulted Variant as dst. vt is a value which identifies the type of the destination Variant.
An EVariantTypeCastError exception will be raised if the source cannot be type-casted to the desired type.