Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Почему Query показывает RecordCount = -1?
|
|||
|---|---|---|---|
|
#18+
Хочу выяснить сколько записей в запросе Showmessage(IntToStr(Query.RecordCount)); возвращает: - 1 ; а в гриде отражается куча (почему, как выйти из ситуации?) Спасибо за совет! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2003, 13:34 |
|
||
|
Почему Query показывает RecordCount = -1?
|
|||
|---|---|---|---|
|
#18+
Use the RecordCount property to find out how many records are in a Recordset object. The property returns -1 when ADO cannot determine the number of records or if the provider or cursor type does not support RecordCount. Reading the RecordCount property on a closed Recordset causes an error. If the Recordset object supports approximate positioning or bookmarks—that is, Supports (adApproxPosition) or Supports (adBookmark), respectively, return True—this value will be the exact number of records in the Recordset, regardless of whether it has been fully populated. If the Recordset object does not support approximate positioning, this property may be a significant drain on resources because all records will have to be retrieved and counted to return an accurate RecordCount value. The cursor type of the Recordset object affects whether the number of records can be determined. The RecordCount property will return -1 for a forward-only cursor; the actual count for a static or keyset cursor; and either -1 or the actual count for a dynamic cursor, depending on the data source. А чтоб найти решение, воспользуйся поиском. Топиков было море. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2003, 13:47 |
|
||
|
Почему Query показывает RecordCount = -1?
|
|||
|---|---|---|---|
|
#18+
Работает если шагнуть, на последнюю запись: Query1.Last; Showmessage(IntToStr(Query1.Recordcount)); Query1.First; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2003, 14:39 |
|
||
|
Почему Query показывает RecordCount = -1?
|
|||
|---|---|---|---|
|
#18+
Лучше использовать дополнительный запрос типа SELECT COUNT(*)... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.05.2003, 22:34 |
|
||
|
Почему Query показывает RecordCount = -1?
|
|||
|---|---|---|---|
|
#18+
Skoree vsego, kogda ti vizivaesh QUERY1.RECORDCOUNT u tebya QUERY1.ACTIVE = FASLE, posmotri, vse rabotaet kak nado ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.05.2003, 04:45 |
|
||
|
|

start [/forum/topic.php?fid=58&gotonew=1&tid=2118203]: |
0ms |
get settings: |
8ms |
get forum list: |
18ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
46ms |
get topic data: |
9ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
| others: | 263ms |
| total: | 399ms |

| 0 / 0 |
