IBX.IBCustomDataSet.TIBCustomDataSet.RowsAffected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RowsAffected : Integer read FRowsAffected;

C++

__property int RowsAffected = {read=FRowsAffected, nodefault};

Properties

Type Visibility Source Unit Parent
property public
IBX.IBCustomDataSet.pas
IBX.IBCustomDataSet.hpp
IBX.IBCustomDataSet TIBCustomDataSet

Description

Indicates the number of rows operated on by the latest query execution.

When the dataset represents a query that does not return a result set, you can't use the RecordCount property to ascertain the number of records affected by the query. In such cases, read RowsAffected to determine how many rows were updated or deleted by the query when it's executed. If no rows were updated or deleted, RowsAffected is zero. RowsAffected is -1 if the query could not be executed due to an error condition. (This latter situation typically follows the throwing of an exception.)