VarAsType function
Attempt to cast a variant to another type.
Declaration
function VarAsType(const V: Variant; aVarType: tvartype): VariantDescription
VarAsType attempts to cast the variant
V to a new variant of type
aVarType and returns the new variant.Errors
If the requested type cast is not supported or possible, an EVariantTypeCastError exception may be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
