ICachedDataset.RecordCount

Syntax

RecordCount: Integer;

Description

The RecordCount property returns the current quantity of cached records.

Example

Sub UserProc;
Var
    MB: IMetabase;
    DSInst: IDatasetInstance;
    Cache: ICachedDataset;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    DSInst:=MB.ItemById("Table_1").Open(NullAs 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:

ICachedDataset