Db > Db Assembly Interfaces > ICachedDataset > ICachedDataset.Delete
Delete;
The Delete method deletes current record.
Sub UserProc;
Var
MB: IMetabase;
DSInst: IDatasetInstance;
Cache: ICachedDataset;
Begin
MB := MetabaseClass.Active;
DSInst := MB.ItemById("Table_1").Open(Null) As 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: