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);

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

Name Description
EVariantTypeCastError Error raised when an invalid typecast is performed
VarCastErrorOle Raise a variant type cast error EVariantTypeCastError