GetDBCode method (Transaction Object control)
Description
Reports the database vendor’s error code when the
most recent database operation resulted in an error.
Controls
Web ActiveX Transaction Object
control
Syntax
1 |
number <span>transaction</span>.<span>GetDBCode</span>( ) |
Return Values
A number whose meaning is defined by the database vendor.
Usage
Call GetSQLCode to find out if an error
occurred before calling GetDBCode to get details
about the error.
Examples
This example checks whether an error occurred before
getting the database vendor’s error code:
1 |
if (trans_1.GetSQLCode( ) == -1) { |
1 |
errnum = trans_1.<span>GetDBCode</span>( ); |
1 |
} |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments