Skip to content

TDataSet.Close

Close the dataset.

Declaration

Source position: db.pas line 2052

public 
procedure TDataSet.Close;

Description

Close closes the dataset if it is open (Active=True). This action triggers the TDataset.BeforeClose and TDataset.AfterClose events. If the dataset is not active, nothing happens.

Errors

If an exception occurs during the closing of the dataset, the AfterClose event will not be triggered.

See also

Name Description
TDataset.Active Is the dataset open or closed.
TDataset.Open Activate the dataset: Fetch data into memory.