GetSQLErrText method (Transaction Object control)
Description
Reports the database vendor’s error message for the
most recent database operation.
Controls
Web ActiveX Transaction Object
control
Syntax
1 |
string <span>transaction</span>.<span>GetSQLErrText</span>( ) |
Return Values
String. The text of the error message.
Usage
Call GetSQLCode to find out if an error
occurred before calling GetDBCode and GetSQLErrText 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.GetDBCode( ); |
1 |
errstring = trans_1.<span>GetSQLErrText</span>( ); |
1 |
} |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments