revNumberOfRecords | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | revdb_recordcount | ||||||
Associations | database library | ||||||
Summary | Returns the number of records in a record set (glossary). | ||||||
Introduced | 1.1 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: string Command: revMoveToNextRecord Glossary: Standalone Application Settings, record, standalone application, record set, return, SQL query, LiveCode custom library, function Library: Database library | ||||||
Security | disk, network | ||||||
Description | Use the revNumberOfRecords function to find out how many records matched a query. If the query is not successful, the revNumberOfRecords function returns an error message that begins with the string "revdberr". Some database types do not support returning the number of records in a result set. One example of this is ODBC data sources with forward-only cursors. If the database does not support this feature, the revNumberOfRecords function will return -1.
| ||||||
Tags | database |