.DataSet.RecordCount
But!!! It's only Clipper LastRec() call, so Filtering commands suchas SET FILTER or SET DELETED have no effect on the return value etc.
---Sergey Spirin.FastReport for Xbase-family languages, www.spirins.com.