Open main menu

RAD Studio API Documentation β

System.Variants.VarIsError

Delphi

function VarIsError(const V: Variant; out AResult: HRESULT): Boolean;
function VarIsError(const V: Variant): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall VarIsError(const System::Variant &V, /* out */ HRESULT &AResult)/* overload */;

Properties

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

Description

Indicates whether the specified variant is an error variant; optionally converts variant back to HRESULT.

VarIsError returns true if the given variant is an Error variant (type varError). If AResult is specified, it is set to the corresponding result code.

See Also