TableRecordCount

Top  Previous  Next

Prototype

 

IntCount:=TableRecordCount(IntTableHandle)

 

Description

 

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

 

// Store a table handle

TableOne:=TableOpenBDE('c:\invoices\index\','invoices.db');

 

// Store the record number of the table

Records:= TableRecordCount(TableOne);

 

// Convert the records number into string

StrRecords:= IntToStr(Records);

 

// Log a message with the records number

AppliactionLog(_CurrentAgent,'These table records are:' + StrRecords);

 

// Execute other operations…

 

// Close the table

TableClose(TableOne);