RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarIsError Function

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

Pascal
function VarIsError(const V: Variant; out AResult: HRESULT): Boolean; overload;
function VarIsError(const V: Variant): Boolean; overload;
C++
Boolean VarIsError(const Variant V, HRESULT AResult);
Boolean VarIsError(const Variant V);

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. 

 

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