GetSQLCode method (Transaction Object control)
Description
Reports a code indicating the success or failure of the most
recent database operation.
Controls
Web ActiveX Transaction Object
control
Syntax
|
1 |
number <span>transaction</span>.<span>GetSQLCode</span>( ) |
Return Values
Number. Possible values are:
-
0 – Success
-
100 – Not found
-
-1 – Error
Usage
When GetSQLCode reports an error, call GetDBCode to
get the vendor’s error code.
Examples
This example checks whether an error occurred before
getting the database vendor’s error code:
|
1 |
if (trans_1.<span>GetSQLCode</span>( ) == -1) { |
|
1 |
errnum = trans_1.GetDBCode( ); |
|
1 |
} |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest