Показать сообщение отдельно
  #2  
Старый 19.03.2012, 08:49
Аватар для NumLock
NumLock NumLock вне форума
Let Me Show You
 
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
По умолчанию

в писании сказано:
Цитата:
RecordCount property (TBDEDataSet)
Indicates the total number of records associated with the dataset.
Description
Examine RecordCount to determine the total number of records in the dataset. Applications can use this property with RecNo to iterate through all the records in a dataset, although typically record iteration is handled with calls to First, Last, MoveBy, and Prior.
Note: Use RecordCount with care, because record counting can be a costly operation, especially for SQL queries that return large result sets. Generally, an application should only use RecordCount with Paradox and dBASE tables.

выход: используй "SELECT count(ID) FROM Object"
__________________
Пишу программы за еду.
__________________
Ответить с цитированием