ICachedDataset.Bof

Syntax

Bof: Boolean;

Description

The Bof method returns True if the cursor is set to the first record of cache.

Example

Sub UserProc;
Var
    MB: IMetabase;
    DSInst: IDatasetInstance;
    Cache: ICachedDataset;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    DSInst:=MB.ItemById("Table_1").Open(NullAs IDatasetInstance;
    Cache:=DSInst.OpenCached;
    If Cache.Bof Then
        s:="Yes";
    Else
        s:="No";
    End If;
End Sub UserProc;

After executing the example, the "s" variable contains Yes if the cursor is on the first record in cache.

See also:

ICachedDataset