Reports the database-specific error code that triggered the DBError event.

long dwcontrol.DBErrorCode ( )
Argument  | 
Description  | 
|---|---|
dwcontrol  | 
A reference to a DataWindow control or child DataWindow  | 
Returns an error code when a database error occurs in dwcontrol. Error codes -1 through -4 are PowerBuilder codes. Other codes are database-specific. Returns 0 if there is no error. If dwcontrol is NULL, the method returns NULL.