System.Variants.VarCastError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure VarCastError;
procedure VarCastError(const ASourceType, ADestType: TVarType);

C++

extern DELPHI_PACKAGE void __fastcall VarCastError(void)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Raises an EVariantTypeCastError exception.

Call VarCastError to indicate that a variant operation has failed due to cast error. VarCastError raises EVariantTypeCastError. If no arguments are specified, the error string is a general error message. If ASourceType and ADestType are specified, the error string incorporates the names of the specified Variant Types.

See Also