C++
HResult __fastcall GetError() const;
Converts the Variant to a varError type and returns the integer value.
See the base class TVarData for more information about varError.