ExCode() as Integer
or
ExCode() as CclEPIExceptionCodes
Returns a value which indicates the most recent condition code returned by the server.
Constants are available in the type library. Use the Visual Basic Object Browser to view them.