TMemDataset.InternalDelete procedure
Performs actions needed to delete a record in the in-memory dataset.
Declaration
procedure InternalDelete; overrideDescription
InternalDelete is an overridden procedure used to perform actions needed when a record is deleted from the in-memory dataset. InternalDelete overrides the virtual method in the ancestor class. No actions are performed in the method when the current record number is -1, or positioned beyond the number of records in the dataset.
InternalDelete removes the data for the record by reloading the internal TMemoryStream used in the in-memory dataset. Any record data before or after the deleted record is included in the stream. The current deleted record is excluded from the stream. This means that calling the Delete method is more memory- and processor-intensive than other operations in TMemDataset.
The value in RecordCount is decremented to reflect the new number of records in the dataset. The value in FileModified is set to True.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
