RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::AsType Method

Casts a System::Variant::Variant object to the type specified by the argument VarType.

Pascal
function AsType(VarType: Integer): Variant;
C++
__fastcall Variant AsType(int VarType) const;

System::Variant::AsType returns a new System::Variant::Variant with the same value as this System::Variant::Variant but with the type specified by VarType. After the call to System::Variant::AsType there are two System::Variant::Variant objects of the same type. 

 

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