RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomVariantType.RaiseCastError Method

Generates a system error that indicates an invalid cast.

Pascal
procedure RaiseCastError;
C++
__fastcall RaiseCastError();

Call RaiseCastError from the implementation of a TCustomVariantType descendant when an operation fails because a System::Variant value could not be cast to a necessary type. 

 

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