System.Variants.VarAsError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarAsError(AResult: HRESULT): Variant;

C++

extern DELPHI_PACKAGE System::Variant __fastcall VarAsError(HRESULT AResult);

Properties

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

Description

Converts a HRESULT into an Error variant.

VarAsError converts an HRESULT result code into an equivalent variant of type varError.

See Also