RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarCastError Function

Raises an EVariantTypeCastError exception.

Pascal
procedure VarCastError; overload;
procedure VarCastError(const ASourceType: TVarType; const ADestType: TVarType); overload;
C++
VarCastError();
VarCastError(const TVarType ASourceType, const TVarType ADestType);

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 System::Variant Types

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!