Returns a large negative integer error code associated with the last error.
lValue = object.brError([ vnErrNumber])
Parameter | Description |
---|---|
lValue | The return value is a Long data type indicating the error code. |
object | An object variable that represents a clsD3Environment object. |
vnErrNumber | Optional. A Variant (Long subtype) indicating the error code. This is the same as lValue and is provided for compatibility with legacy applications. This is an output-only parameter. |
The error codes are found in eD3ErrorConstants using the Object Browser and in the D3 error codes topic in this help system.
Private Function ReadItem() As Boolean ... On Error Resume Next Set oFile = oConn.brOpenFile(txtFileName.Text) If oEnv.brError= 0 Then sItemId = txtItem.Text Set oItem = oFile.brReadVU(sItemId, "productname") txtName.Text = oItem.brCString ReadItem = True Else ’ Polling brError If oEnv.brError= d3SrvErr_Missing Then txtStatus.Text = "File does not exist" Else txtStatus.Text = "Unidentified error" End If ReadItem = False End If Exit Function