Bof: Boolean;
The Bof method returns True if the cursor is set to the first record of cache.
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.Bof 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 first record in cache.
See also: