Show contents 

Db > Db Assembly Interfaces > ICachedDataset > ICachedDataset.Delete

ICachedDataset.Delete

Syntax

Delete;

Description

The Delete method deletes current record.

Example

Sub UserProc;
Var
    MB: IMetabase;
    DSInst: IDatasetInstance;
    Cache: ICachedDataset;
Begin
    MB := MetabaseClass.Active;
    DSInst := MB.ItemById("Table_1").Open(NullAs IDatasetInstance;
    Cache := DSInst.OpenCached;
    Cache.Delete;
    Cache.Close;
    DSInst.Close;
End Sub UserProc;

After executing the example, the first record in the data source table is removed.

See also:

ICachedDataset