ICachedDataset.EofData

Syntax

EofData: Boolean;

Description

The EofData method returns True if the cursor is on the record corresponding to last record in initial data of source.

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.EofData 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 record in cache, corresponding to the last record of source initial data .

See also:

ICachedDataset