table.RECORDS_DELETED Function


Deleted_Records as N = <TBL>.records_deleted()


Returns a count of the records deleted.


The <TBL>.RECORDS_DELETED() method returns the number of Deleted_Records in the open table referenced by <TBL>. When records are deleted from a table they are not physically removed from the table. To physically remove deleted records from a table, you must pack the table using the <TBL>.PACK() method.

This script packs the table to remove any space taken up by deleted records.

tbl ="c:\a5\a_sports\customer.dbf")
deleted_count = tbl.records_deleted()
if deleted_count > 0 then
end if

See Also