Sign in Join
FPDoc Onlineexperiment

TMemDataset.InternalClose procedure

Member of TMemDatasetprotectedIn unit MemDs

Performs actions needed when closing the in-memory dataset.

Declaration

pascal
procedure InternalClose; override

Description

InternalClose is an overridden procedure used to perform actions needed when closing the in-memory dataset. InternalClose implements the abstract virtual method defined in the ancestor class.

InternalClose uses the values in the FileModified and FileName properties to determine if additional actions are needed. When FileModified is True and FileName is not an empty string (''), the SaveToFile method is called using the value in FileName as an argument. The Save operation stores the structure (field definitions) and any record data in the in-memory dataset. When DefaultFields is True, the DestroyFields method is called to free resources allocated to the Fields property when the dataset was opened. InternalClose resets the values used in IsCursorOpen and FileModified to False.

InternalClose is called from the Close method, or when the value in Active is changed to False.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.