GetSQLNRows method (Transaction Object control)
Description
Reports the number of rows affected by the most recent database
operation.
Controls
Web ActiveX Transaction Object
control
Syntax
1 |
number<span> transaction</span>.<span>GetSQLNRows</span>( ) |
Return Values
Number. The number of affected rows.
Usage
The number of rows is supplied by the database vendor, so
the meaning may not be the same in every DBMS.
Examples
This example updates the database and, if no errors
occurred, reports the number of rows affected:
1 |
dw_1.Update( ); |
1 |
if (trans_1.GetSQLCode( ) == 0) { |
1 |
alert("Rows updated: " + trans_1.<span>GetSQLNRows</span>( )); |
1 |
} |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments