EofData: Boolean;
The EofData method returns True if the cursor is on the record corresponding to last record in initial data of source.
Sub Main;
Var
MB: IMetabase;
DSInst: IDatasetInstance;
Cache: ICachedDataset;
s: String;
Begin
MB:=MetabaseClass.Active;
DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;
Cache:=DSInst.OpenCached;
If Cache.EofData Then
s:="Yes";
Else
s:="No";
End If;
End Sub Main;
After executing the example the "s" variable contains Yes if the cursor is on the record in cache, corresponding to the last record of source initial data .
See also: