ICachedDataset.RecRange

Syntax

RecRange: Integer;

Description

The RecRange property determines quantity of records cached forward from current position.

Example

Sub Main;

Var

MB: IMetabase;

DSInst: IDatasetInstance;

Cache: ICachedDataset;

Begin

MB:=MetabaseClass.Active;

DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;

Cache:=DSInst.OpenCached;

Cache.RecNo:=2;

Cache.RecRange:=2;

End Sub Main;

After executing the example, the cursor in cache is set on the third record. Also two next records are put into cache.

See also:

ICachedDataset