[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Variants' (#rtl)

VarCastError

Raise a variant type cast error EVariantTypeCastError

Declaration

Source position: variants.pp line 292

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: Jun 22 2020