Skip to content

TDataSet.BeforeOpen

Event triggered before the dataset is opened.

Declaration

Source position: db.pas line 1972

public property BeforeOpen: TDataSetNotifyEvent;

Description

BeforeOpen is triggered before the dataset is opened. No actions have been performed yet when this event is called, and the dataset is still in dsInactive state. It can be used to set parameters and options that influence the opening process. If an exception is raised during the event handler, the dataset remains closed.

See also

Name Description
TDataset.AfterOpen Event triggered after the dataset is opened.
TDataset.State Current operational state of the dataset.