TableRecordCount
Previous  Top  Next

Prototype

IntCount:=TableRecordCount(IntTableHandle)

Description

It returns the records number contained in the table passed for parameter.

Parameters

IntTableHandle
: integer value corresponding to the table handle.

Returned value

IntCount: integer value corresponding to the records contained in the table.

Notes

None.

Example

// It stores a table handle
UnaTabella:=TableOpen('c:\invoices\index\','invoices.db');

// It stores the records number of the table
Records:= TableRecordCount(UnaTabella);

// It converts the records number into string
StrRecords:= IntToStr(Records);

// It shows a message with the records number
AppliactionLog(_CurrentAgent,'These table records are:' + StrRecords);

// It executes other operations…

// It closes the table
TableClose(UnaTabella);