RecRange: Integer;
The RecRange property determines quantity of records cached forward from current position.
Sub UserProc;
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 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: