RecordCount: Integer;
The RecordCount property returns the current quantity of cached records.
Sub UserProc;
Var
MB: IMetabase;
DSInst: IDatasetInstance;
Cache: ICachedDataset;
i: Integer;
Begin
MB:=MetabaseClass.Active;
DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;
Cache:=DSInst.OpenCached;
i:=Cache.RecordCount;
End Sub UserProc;
After executing the example the "i" variable contains current quantity of cached records.
See also: