OpenCached: ICachedDataset;
The OpenCached method allows working with cache of data source.
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: