DBCancel  DBErrorMessage

Chapter 9: Methods for the DataWindow Control

DBErrorCode

Description

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

Syntax

PowerBuilder

long dwcontrol.DBErrorCode ( ) 

Argument

Description

dwcontrol

A reference to a DataWindow control or child DataWindow

Returns

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.





Copyright © 2004. Sybase Inc. All rights reserved. DBErrorMessage

View this book as PDF