All Cadcorp SIS API Methods

CompactDataset Method

The serial number of the dataset to be compacted. The serial number can be obtained from the Dataset property of an overlay, or from the GetDataset, GetDatasetContainer or FindExternalDataset methods.

Description

Discards all undo actions and defragments the memory used by a dataset.

Syntax

Visual Basic
Public Function CompactDataset( _
   ByVal nDataset As Long _
) As Integer

Parameters

nDataset
The serial number of the dataset to be compacted. The serial number can be obtained from the Dataset property of an overlay, or from the GetDataset, GetDatasetContainer or FindExternalDataset methods.

Remarks

The current open Item, if any, will be closed and the current selection list will be emptied before compacting the dataset.

Available: GEO D OD OM OV SISpy

Group: