adoErrCount
Previous Topic  Next Topic 

Synopsis:

       numErrors=adoErrCount(handle)

Arguments:

       handle - The Connection handle.


Description:   This function returns the number of errors in the Errors collection of underlying Connection object data.      Information about the errors in the collection can can then be obtained using the adoErrMessage(), adoErrValue() and adoErrNative() functions.    The Errors collection provides the means to get more specific and detailed data about errors which have occured on a connection.


The Errors collection is maintained on a per connection basis and multiple errors may be inserted into the Errors collection by the data provider for a single function call.   


The adoErrClear() function allows the error collection to be cleared for a particular connection.


Returns:   Returns the number of errors  in the Errors collection of underlying connection object,   or a negative error code.   If ADOERR_COMERR is returned, then the underlying ADO error can be obtained by calling adoLastError()