Attempt to cast a variant to another type.
Source position: variants.pp line 76
function VarAsType( |
const V: Variant; |
aVarType: tvartype |
):Variant; |
VarAsType attempts to cast the variant V to a new variant of type aVarType and returns the new variant.
If the requested type cast is not supported or possible, an EVariantTypeCastError exception may be raised.
|
Error raised when an invalid typecast is performed. |
|
|
Check if a variant is of certain type. |
|
|
Attempt to cast a variant to another type. |