Record Count

function link

Purpose

This returns the number of rows contained in the Recordset, or -1 if the data is not available.

Syntax

int rows = 0              // Read the number of Recordset rows
// 
rows := Recordset.RecordCount()

Arguments

This function has no arguments.

Return value

An integer is returned that represents the number of rows contained in the Recordset, or -1 if the data is not available.

  • It is not always possible to request the number of Recordset rows. If, for example, you ask the number of rows of a Recordset to which a RecordsetMetaData has not yet been associated, -1 is returned.

Changed on: 24/05/2022 / From version: 6.5.2680