IDatasetInstance.OpenCached

Syntax

OpenCached: ICachedDataset;

Description

The OpenCached method allows working with cache of data source.

Example

Sub Main;

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.RecordCountAll;

End Sub Main;

After executing the example, the "i" variable contains quantity of all records in cache.

See also:

IDatasetInstance