RAD Studio VCL Reference
Variants.VarIsError Function

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

function VarIsError(const V: Variant; out AResult: HRESULT): Boolean; overload;
function VarIsError(const V: Variant): Boolean; overload;
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!