System.Variants.TCustomVariantType.RaiseCastError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RaiseCastError;

C++

void __fastcall RaiseCastError();

Properties

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

Description

Generates a system error that indicates an invalid cast.

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

See Also