| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Raise a variant type cast error EVariantTypeCastError
Source position: variants.pp line 292
procedure VarCastError;  | 
const ASourceType: TVarType;  | 
const ADestType: TVarType  | 
);  | 
ASourceType  | 
  | 
Source variant type  | 
ADestType  | 
  | 
Destination variant type  | 
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.
  | 
Error raised when an invalid typecast is performed  | 
|
  | 
Raise a variant type cast error EVariantTypeCastError  |