Bde.DBTables.TQuery.RowsAffected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RowsAffected: Integer read GetRowsAffected;

C++

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

Properties

Type Visibility Source Unit Parent
property public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TQuery

Description

Returns the number of rows operated upon by the latest query execution.

Inspect RowsAffected to determine how many rows were updated or deleted by the last query operation. If no rows were updated or deleted, RowsAffected has a value of zero. RowsAffected will have a value of –1 if the execution of the SQL statement could not be executed due to an error condition. This latter situation would typically follow the raising of an exception.

See Also