Truncate;
The Truncate method removes all records of data source.
Sub Main;
Var
MB: IMetabase;
DSInst: IDatasetInstance;
Cache: ICachedDataset;
Begin
MB:=MetabaseClass.Active;
DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;
Cache:=DSInst.OpenCached;
Cache.Truncate;
End Sub Main;
After executing the example, all records of data source are removed.
See also: