ICachedDataset.RecRange

Syntax

RecRange: Integer;

Description

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

Example

Sub UserProc;
Var
    MB: IMetabase;
    DSInst: IDatasetInstance;
    Cache: ICachedDataset;
Begin
    MB:=MetabaseClass.Active;
    DSInst:=MB.ItemById("Table_1").Open(NullAs IDatasetInstance;
    Cache:=DSInst.OpenCached;
    Cache.RecNo:=2;
    Cache.RecRange:=2;
End Sub UserProc;

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