RecRange: Integer;
The RecRange property determines the number of records cached forward from the 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;
Cache.Close;
DSInst.Close;
End Sub UserProc;
After executing the example the cursor in cache is put on the third record. The following two records are also put into cache.
See also: