| 
 Returns the first database error message that causes an internal processing error or chain of errors. This function enables the retrieval and display of a database error code and message text for display to end users. Invoking the DbERR function also clears the error message. 
 | 
| 
 Syntax: 
 | 
 DbERR(string) 
 | 
| 
 Parameters: 
 | 
 string – An Alpha String or Alpha String expression containing the Database Name 
 | 
| 
 Returns: 
 | 
 For SQL: A string containing the error message. For ISAM: A number representing the error code. 
 | 
| 
 Example: 
 | 
 Use DbERR with an Update operation on an Alphanumeric variable to retrieve the error. 
 | 
| 
 Note: 
 | 
 The error number or text returned depends on the underlying DBMS used for data storage. 
 | 
| 
 Exceptions: 
 | 
 This function is not supported for Web Service databases. 
 | 
| 
 See also: 
 | 
 The Online and Rich Client Samples projects (program SQ02 and RSQ02) 
 |