Skip to content

VarCastErrorOle

Raise a variant type cast error EVariantTypeCastError.

Declaration

Source position: variants.pp line 301

procedure VarCastErrorOle(const ASourceType: tvartype);

Arguments

Name Description
ASourceType Source variant type.

Description

VarCastError raises an EVariantTypeCastError exception. a description of the source type (aSourceType) is included in the error message.

See also

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