Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

VarCastError

Raise a variant type cast error EVariantTypeCastError.

Declaration

Source position: variants.pp line 299

procedure VarCastError;

procedure VarCastError(

  const ASourceType: TVarType;

  const ADestType: TVarType

);

Arguments

ASourceType

  

Source variant type.

ADestType

  

Destination variant type.

Description

VarCastError raises an EVariantTypeCastError exception. If the source and destination types are specified, then a description of the types is included in the error message.

See also

EVariantTypeCastError

  

Error raised when an invalid typecast is performed.

VarCastErrorOle

  

Raise a variant type cast error EVariantTypeCastError.


Documentation generated on: Nov 22 2024